think/packages/domains/lib/api/comment.d.ts

36 lines
719 B
TypeScript

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