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: {
method: "Get";
server: "list/all";
client: () => string;
};
/**
*
*/
getOwnWikis: {
method: "Get";
server: "list/own";
client: () => string;
};
/**
*
*/
getJoinWikis: {
method: "Get";
server: "list/join";
client: () => string;
};
/**
*
*/
add: {
method: "Post";
server: "add";
client: () => string;
};
/**
*
*/
getHomeDocumentById: {
method: "Get";
server: "homedoc/:id";
client: (id: IWiki['id']) => string;
};
/**
*
*/
getTocsById: {
method: "Get";
server: "tocs/:id";
client: (id: IWiki['id']) => string;
};
/**
*
*/
updateTocsById: {
method: "Patch";
server: "tocs/:id/update";
client: (id: IWiki['id']) => string;
};
/**
*
*/
getDocumentsById: {
method: "Get";
server: "documents/:id";
client: (id: IWiki['id']) => string;
};
/**
*
*/
getDetailById: {
method: "Get";
server: "detail/:id";
client: (id: IWiki['id']) => string;
};
/**
*
*/
updateById: {
method: "Patch";
server: "update/:id";
client: (id: IWiki['id']) => string;
};
/**
*
*/
deleteById: {
method: "Delete";
server: "delet/:id";
client: (id: IWiki['id']) => string;
};
/**
*
*/
getMemberById: {
method: "Get";
server: "member/:id";
client: (id: IWiki['id']) => string;
};
/**
*
*/
addMemberById: {
method: "Post";
server: "member/:id/add";
client: (id: IWiki['id']) => string;
};
/**
*
*/
updateMemberById: {
method: "Patch";
server: "member/:id/update";
client: (id: IWiki['id']) => string;
};
/**
*
*/
deleteMemberById: {
method: "Delete";
server: "member/:id/delete";
client: (id: IWiki['id']) => string;
};
/**
*
*/
shareById: {
method: "Post";
server: "share/:id";
client: (id: IWiki['id']) => string;
};
/**
*
*/
getPublicHomeDocumentById: {
method: "Get";
server: "/public/homedoc/:id";
client: (id: IWiki['id']) => string;
};
/**
*
*/
getPublicTocsById: {
method: "Get";
server: "/public/tocs/:id";
client: (id: IWiki['id']) => string;
};
/**
*
*/
getPublicDetailById: {
method: "Get";
server: "/public/detail/:id";
client: (id: IWiki['id']) => string;
};
/**
*
*/
getPublicWikis: {
method: "Get";
server: "/public/wikis";
client: (id: IWiki['id']) => string;
};
};