2022-05-23 13:05:59 +08:00
|
|
|
import { IComment, IDocument } from '../models';
|
|
|
|
export declare const CommentApiDefinition: {
|
|
|
|
/**
|
|
|
|
* 新建评论
|
|
|
|
*/
|
|
|
|
add: {
|
2022-05-23 16:20:56 +08:00
|
|
|
method: "post";
|
2022-05-23 13:05:59 +08:00
|
|
|
server: "add";
|
|
|
|
client: () => string;
|
|
|
|
};
|
|
|
|
/**
|
|
|
|
* 更新评论
|
|
|
|
*/
|
|
|
|
update: {
|
2022-05-23 16:20:56 +08:00
|
|
|
method: "patch";
|
2022-05-23 13:05:59 +08:00
|
|
|
server: "update";
|
|
|
|
client: () => string;
|
|
|
|
};
|
|
|
|
/**
|
|
|
|
* 删除评论
|
|
|
|
*/
|
|
|
|
delete: {
|
2022-05-23 16:20:56 +08:00
|
|
|
method: "delete";
|
2022-05-23 13:05:59 +08:00
|
|
|
server: "delete/:id";
|
|
|
|
client: (id: IComment['id']) => string;
|
|
|
|
};
|
|
|
|
/**
|
|
|
|
* 获取指定文档评论
|
|
|
|
*/
|
|
|
|
documents: {
|
2022-05-23 16:20:56 +08:00
|
|
|
method: "get";
|
2022-05-23 13:05:59 +08:00
|
|
|
server: "document/:documentId";
|
|
|
|
client: (documentId: IDocument['id']) => string;
|
|
|
|
};
|
|
|
|
};
|