2022-05-23 05:05:59 +00:00
|
|
|
import { ITemplate } from '../models';
|
|
|
|
export declare const TemplateApiDefinition: {
|
|
|
|
/**
|
|
|
|
* 获取公开模板
|
|
|
|
*/
|
|
|
|
public: {
|
2022-05-23 08:20:56 +00:00
|
|
|
method: "get";
|
2022-05-23 05:05:59 +00:00
|
|
|
server: "public";
|
|
|
|
client: () => string;
|
|
|
|
};
|
|
|
|
/**
|
|
|
|
* 获取个人创建模板
|
|
|
|
*/
|
|
|
|
own: {
|
2022-05-23 08:20:56 +00:00
|
|
|
method: "get";
|
2022-05-23 05:05:59 +00:00
|
|
|
server: "own";
|
|
|
|
client: () => string;
|
|
|
|
};
|
|
|
|
/**
|
|
|
|
* 新建模板
|
|
|
|
*/
|
|
|
|
add: {
|
2022-05-23 08:20:56 +00:00
|
|
|
method: "post";
|
2022-05-23 05:05:59 +00:00
|
|
|
server: "add";
|
|
|
|
client: () => string;
|
|
|
|
};
|
|
|
|
/**
|
|
|
|
* 更新模板
|
|
|
|
*/
|
|
|
|
updateById: {
|
2022-05-23 08:20:56 +00:00
|
|
|
method: "patch";
|
2022-05-23 05:05:59 +00:00
|
|
|
server: "update/:id";
|
|
|
|
client: (id: ITemplate['id']) => string;
|
|
|
|
};
|
|
|
|
/**
|
|
|
|
* 获取模板详情
|
|
|
|
*/
|
|
|
|
getDetailById: {
|
2022-05-23 08:20:56 +00:00
|
|
|
method: "get";
|
2022-05-23 05:05:59 +00:00
|
|
|
server: "detail/:id";
|
|
|
|
client: (id: ITemplate['id']) => string;
|
|
|
|
};
|
|
|
|
/**
|
|
|
|
* 删除模板
|
|
|
|
*/
|
|
|
|
deleteById: {
|
2022-05-23 08:20:56 +00:00
|
|
|
method: "delete";
|
2022-05-23 05:05:59 +00:00
|
|
|
server: "delete/:id";
|
|
|
|
client: (id: ITemplate['id']) => string;
|
|
|
|
};
|
|
|
|
};
|