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

124 lines
2.5 KiB
TypeScript
Raw Normal View History

2022-05-23 05:05:59 +00:00
import { IDocument } from '../models';
export declare const DocumentApiDefinition: {
/**
*
*/
search: {
method: "Get";
server: "search";
client: () => string;
};
/**
* 访
*/
recent: {
method: "Get";
server: "recent";
client: () => string;
};
/**
*
*/
create: {
method: "Post";
server: "create";
client: () => string;
};
/**
*
*/
getDetailById: {
method: "Get";
server: "detail/:id";
client: (id: IDocument['id']) => string;
};
/**
*
*/
updateById: {
method: "Patch";
server: "update/:id";
client: (id: IDocument['id']) => string;
};
/**
*
*/
getVersionById: {
method: "Get";
server: "version/:id";
client: (id: IDocument['id']) => string;
};
/**
*
*/
getMemberById: {
method: "Get";
server: "member/:id";
client: (id: IDocument['id']) => string;
};
/**
*
*/
addMemberById: {
method: "Post";
server: "member/:id/add";
client: (id: IDocument['id']) => string;
};
/**
*
*/
updateMemberById: {
method: "Patch";
server: "member/:id/update";
client: (id: IDocument['id']) => string;
};
/**
*
*/
deleteMemberById: {
method: "Post";
server: "member/:id/delete";
client: (id: IDocument['id']) => string;
};
/**
*
*/
getChildren: {
method: "Get";
server: "children";
client: () => string;
};
/**
*
*/
deleteById: {
method: "Delete";
server: "delete/:id";
client: (id: IDocument['id']) => string;
};
/**
*
*/
shareById: {
method: "Post";
server: "share/:id";
client: (id: IDocument['id']) => string;
};
/**
*
*/
getPublicDetailById: {
method: "Get";
server: "public/detail/:id";
client: (id: IDocument['id']) => string;
};
/**
*
*/
getPublicChildren: {
method: "Get";
server: "public/children";
client: () => string;
};
};