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

38 lines
849 B
TypeScript
Raw Permalink Normal View History

2022-05-23 05:05:59 +00:00
"use strict";
exports.__esModule = true;
exports.CommentApiDefinition = void 0;
exports.CommentApiDefinition = {
/**
*
*/
add: {
2022-05-23 08:20:56 +00:00
method: 'post',
2022-05-23 05:05:59 +00:00
server: 'add',
client: function () { return '/comment/add'; }
},
/**
*
*/
update: {
2022-05-23 08:20:56 +00:00
method: 'patch',
2022-05-23 05:05:59 +00:00
server: 'update',
client: function () { return '/comment/update'; }
},
/**
*
*/
"delete": {
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 "/comment/delete/".concat(id); }
},
/**
*
*/
documents: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: 'document/:documentId',
client: function (documentId) { return "/comment/document/".concat(documentId); }
}
};