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

164 lines
3.5 KiB
TypeScript
Raw Normal View History

2022-05-23 13:05:59 +08:00
import { IWiki } from '../models';
export declare const WikiApiDefinition: {
/**
*
*/
getAllWikis: {
2022-05-23 16:20:56 +08:00
method: "get";
2022-05-23 13:05:59 +08:00
server: "list/all";
client: () => string;
};
/**
*
*/
getOwnWikis: {
2022-05-23 16:20:56 +08:00
method: "get";
2022-05-23 13:05:59 +08:00
server: "list/own";
client: () => string;
};
/**
*
*/
getJoinWikis: {
2022-05-23 16:20:56 +08:00
method: "get";
2022-05-23 13:05:59 +08:00
server: "list/join";
client: () => string;
};
/**
*
*/
add: {
2022-05-23 16:20:56 +08:00
method: "post";
2022-05-23 13:05:59 +08:00
server: "add";
client: () => string;
};
/**
*
*/
getHomeDocumentById: {
2022-05-23 16:20:56 +08:00
method: "get";
2022-05-23 13:05:59 +08:00
server: "homedoc/:id";
client: (id: IWiki['id']) => string;
};
/**
*
*/
getTocsById: {
2022-05-23 16:20:56 +08:00
method: "get";
2022-05-23 13:05:59 +08:00
server: "tocs/:id";
client: (id: IWiki['id']) => string;
};
/**
*
*/
updateTocsById: {
2022-05-23 16:20:56 +08:00
method: "patch";
2022-05-23 13:05:59 +08:00
server: "tocs/:id/update";
client: (id: IWiki['id']) => string;
};
/**
*
*/
getDocumentsById: {
2022-05-23 16:20:56 +08:00
method: "get";
2022-05-23 13:05:59 +08:00
server: "documents/:id";
client: (id: IWiki['id']) => 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: IWiki['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: IWiki['id']) => string;
};
/**
*
*/
deleteById: {
2022-05-23 16:20:56 +08:00
method: "delete";
2022-05-23 13:05:59 +08:00
server: "delet/:id";
client: (id: IWiki['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: IWiki['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: IWiki['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: IWiki['id']) => string;
};
/**
*
*/
deleteMemberById: {
2022-05-23 16:20:56 +08:00
method: "delete";
2022-05-23 13:05:59 +08:00
server: "member/:id/delete";
client: (id: IWiki['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: IWiki['id']) => string;
};
/**
*
*/
getPublicHomeDocumentById: {
2022-05-23 16:20:56 +08:00
method: "get";
2022-05-23 13:05:59 +08:00
server: "/public/homedoc/:id";
client: (id: IWiki['id']) => string;
};
/**
*
*/
getPublicTocsById: {
2022-05-23 16:20:56 +08:00
method: "get";
2022-05-23 13:05:59 +08:00
server: "/public/tocs/:id";
client: (id: IWiki['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: IWiki['id']) => string;
};
/**
*
*/
getPublicWikis: {
2022-05-23 16:20:56 +08:00
method: "get";
2022-05-23 13:05:59 +08:00
server: "/public/wikis";
2022-05-23 16:20:56 +08:00
client: () => string;
2022-05-23 13:05:59 +08:00
};
};