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

124 lines
2.5 KiB
TypeScript
Raw Normal View History

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