forked from yoone/WEB
1
0
Fork 0
WEB/src/servers/api/customer.ts

74 lines
1.8 KiB
TypeScript

// @ts-ignore
/* eslint-disable */
import { request } from 'umi';
/** 此处后端没有提供注释 GET /customer/list */
export async function customercontrollerGetcustomerlist(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.customercontrollerGetcustomerlistParams,
options?: { [key: string]: any },
) {
return request<any>('/customer/list', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 PUT /customer/rate */
export async function customercontrollerSetrate(
body: Record<string, any>,
options?: { [key: string]: any },
) {
return request<API.BooleanRes>('/customer/rate', {
method: 'PUT',
headers: {
'Content-Type': 'text/plain',
},
data: body,
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /customer/tag/add */
export async function customercontrollerAddtag(
body: API.CustomerTagDTO,
options?: { [key: string]: any },
) {
return request<API.BooleanRes>('/customer/tag/add', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** 此处后端没有提供注释 DELETE /customer/tag/del */
export async function customercontrollerDeltag(
body: API.CustomerTagDTO,
options?: { [key: string]: any },
) {
return request<API.BooleanRes>('/customer/tag/del', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** 此处后端没有提供注释 GET /customer/tags */
export async function customercontrollerGettags(options?: {
[key: string]: any;
}) {
return request<any>('/customer/tags', {
method: 'GET',
...(options || {}),
});
}