2022-05-23 13:05:59 +08:00
|
|
|
"use strict";
|
|
|
|
exports.__esModule = true;
|
|
|
|
exports.TemplateApiDefinition = void 0;
|
|
|
|
exports.TemplateApiDefinition = {
|
|
|
|
/**
|
|
|
|
* 获取公开模板
|
|
|
|
*/
|
|
|
|
public: {
|
2022-05-23 16:20:56 +08:00
|
|
|
method: 'get',
|
2022-05-23 13:05:59 +08:00
|
|
|
server: 'public',
|
|
|
|
client: function () { return '/template/public'; }
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 获取个人创建模板
|
|
|
|
*/
|
|
|
|
own: {
|
2022-05-23 16:20:56 +08:00
|
|
|
method: 'get',
|
2022-05-23 13:05:59 +08:00
|
|
|
server: 'own',
|
|
|
|
client: function () { return '/template/own'; }
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 新建模板
|
|
|
|
*/
|
|
|
|
add: {
|
2022-05-23 16:20:56 +08:00
|
|
|
method: 'post',
|
2022-05-23 13:05:59 +08:00
|
|
|
server: 'add',
|
|
|
|
client: function () { return '/template/add'; }
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 更新模板
|
|
|
|
*/
|
|
|
|
updateById: {
|
2022-05-23 16:20:56 +08:00
|
|
|
method: 'patch',
|
2022-05-23 13:05:59 +08:00
|
|
|
server: 'update/:id',
|
|
|
|
client: function (id) { return "/template/update/".concat(id); }
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 获取模板详情
|
|
|
|
*/
|
|
|
|
getDetailById: {
|
2022-05-23 16:20:56 +08:00
|
|
|
method: 'get',
|
2022-05-23 13:05:59 +08:00
|
|
|
server: 'detail/:id',
|
|
|
|
client: function (id) { return "/template/detail/".concat(id); }
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 删除模板
|
|
|
|
*/
|
|
|
|
deleteById: {
|
2022-05-23 16:20:56 +08:00
|
|
|
method: 'delete',
|
2022-05-23 13:05:59 +08:00
|
|
|
server: 'delete/:id',
|
|
|
|
client: function (id) { return "/template/delete/".concat(id); }
|
|
|
|
}
|
|
|
|
};
|