mirror of https://github.com/fantasticit/think.git
52 lines
1006 B
TypeScript
52 lines
1006 B
TypeScript
|
import { ITemplate } from '../models';
|
||
|
export declare const TemplateApiDefinition: {
|
||
|
/**
|
||
|
* 获取公开模板
|
||
|
*/
|
||
|
public: {
|
||
|
method: "Get";
|
||
|
server: "public";
|
||
|
client: () => string;
|
||
|
};
|
||
|
/**
|
||
|
* 获取个人创建模板
|
||
|
*/
|
||
|
own: {
|
||
|
method: "Get";
|
||
|
server: "own";
|
||
|
client: () => string;
|
||
|
};
|
||
|
/**
|
||
|
* 新建模板
|
||
|
*/
|
||
|
add: {
|
||
|
method: "Post";
|
||
|
server: "add";
|
||
|
client: () => string;
|
||
|
};
|
||
|
/**
|
||
|
* 更新模板
|
||
|
*/
|
||
|
updateById: {
|
||
|
method: "Patch";
|
||
|
server: "update/:id";
|
||
|
client: (id: ITemplate['id']) => string;
|
||
|
};
|
||
|
/**
|
||
|
* 获取模板详情
|
||
|
*/
|
||
|
getDetailById: {
|
||
|
method: "Get";
|
||
|
server: "detail/:id";
|
||
|
client: (id: ITemplate['id']) => string;
|
||
|
};
|
||
|
/**
|
||
|
* 删除模板
|
||
|
*/
|
||
|
deleteById: {
|
||
|
method: "Delete";
|
||
|
server: "delete/:id";
|
||
|
client: (id: ITemplate['id']) => string;
|
||
|
};
|
||
|
};
|