think/packages/domains/lib/api/template.d.ts

52 lines
1006 B
TypeScript
Raw Normal View History

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;
};
};