think/packages/domains/lib/api/document.js

134 lines
3.3 KiB
TypeScript
Raw Permalink Normal View History

2022-05-23 05:05:59 +00:00
"use strict";
exports.__esModule = true;
exports.DocumentApiDefinition = void 0;
exports.DocumentApiDefinition = {
/**
*
*/
search: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-06-29 16:03:02 +00:00
server: '/:organizationId/search',
client: function (organizationId) { return "/document/".concat(organizationId, "/search"); }
2022-05-23 05:05:59 +00:00
},
/**
* 访
*/
recent: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-06-29 16:03:02 +00:00
server: '/:organizationId/recent',
client: function (organizationId) { return "/document/".concat(organizationId, "/recent"); }
2022-05-23 05:05:59 +00:00
},
/**
*
*/
create: {
2022-05-23 08:20:56 +00:00
method: 'post',
2022-05-23 05:05:59 +00:00
server: 'create',
client: function () { return '/document/create'; }
},
/**
*
*/
getDetailById: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: 'detail/:id',
client: function (id) { return "/document/detail/".concat(id); }
},
2022-08-10 04:37:17 +00:00
/**
*
*/
exportDocx: {
method: 'post',
server: '/export/docx',
client: function () { return '/document/export/docx'; }
},
2022-05-23 05:05:59 +00:00
/**
*
*/
updateById: {
2022-05-23 08:20:56 +00:00
method: 'patch',
2022-05-23 05:05:59 +00:00
server: 'update/:id',
client: function (id) { return "/document/update/".concat(id); }
},
/**
*
*/
getVersionById: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: 'version/:id',
client: function (id) { return "/document/version/".concat(id); }
},
/**
*
*/
getMemberById: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: 'member/:id',
client: function (id) { return "/document/member/".concat(id); }
},
/**
*
*/
addMemberById: {
2022-05-23 08:20:56 +00:00
method: 'post',
2022-05-23 05:05:59 +00:00
server: 'member/:id/add',
client: function (id) { return "/document/member/".concat(id, "/add"); }
},
/**
*
*/
updateMemberById: {
2022-05-23 08:20:56 +00:00
method: 'patch',
2022-05-23 05:05:59 +00:00
server: 'member/:id/update',
client: function (id) { return "/document/member/".concat(id, "/update"); }
},
/**
*
*/
deleteMemberById: {
2022-05-23 08:20:56 +00:00
method: 'post',
2022-05-23 05:05:59 +00:00
server: 'member/:id/delete',
client: function (id) { return "/document/member/".concat(id, "/delete"); }
},
/**
*
*/
getChildren: {
2022-05-24 09:33:30 +00:00
method: 'post',
2022-05-23 05:05:59 +00:00
server: 'children',
client: function () { return "/document/children"; }
},
/**
*
*/
deleteById: {
2022-05-23 08:20:56 +00:00
method: 'delete',
2022-05-23 05:05:59 +00:00
server: 'delete/:id',
client: function (id) { return "/document/delete/".concat(id); }
},
/**
*
*/
shareById: {
2022-05-23 08:20:56 +00:00
method: 'post',
2022-05-23 05:05:59 +00:00
server: 'share/:id',
client: function (id) { return "/document/share/".concat(id); }
},
/**
*
*/
getPublicDetailById: {
2022-05-24 09:33:30 +00:00
method: 'post',
2022-05-23 05:05:59 +00:00
server: 'public/detail/:id',
client: function (id) { return "/document/public/detail/".concat(id); }
},
/**
*
*/
getPublicChildren: {
2022-05-24 09:33:30 +00:00
method: 'post',
2022-05-23 05:05:59 +00:00
server: 'public/children',
client: function () { return "/document/public/children"; }
}
};