104 lines
2.7 KiB
TypeScript
104 lines
2.7 KiB
TypeScript
// @ts-ignore
|
|
/* eslint-disable */
|
|
import { request } from 'umi';
|
|
|
|
/** 此处后端没有提供注释 POST /customer/addtag */
|
|
export async function customercontrollerAddtag(
|
|
body: API.CustomerTagDTO,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<Record<string, any>>('/customer/addtag', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /customer/deltag */
|
|
export async function customercontrollerDeltag(
|
|
body: API.CustomerTagDTO,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<Record<string, any>>('/customer/deltag', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 GET /customer/getcustomerlist */
|
|
export async function customercontrollerGetcustomerlist(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.customercontrollerGetcustomerlistParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<Record<string, any>>('/customer/getcustomerlist', {
|
|
method: 'GET',
|
|
params: {
|
|
...params,
|
|
},
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 GET /customer/getcustomerstatisticlist */
|
|
export async function customercontrollerGetcustomerstatisticlist(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.customercontrollerGetcustomerstatisticlistParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<Record<string, any>>('/customer/getcustomerstatisticlist', {
|
|
method: 'GET',
|
|
params: {
|
|
...params,
|
|
},
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 GET /customer/gettags */
|
|
export async function customercontrollerGettags(options?: {
|
|
[key: string]: any;
|
|
}) {
|
|
return request<Record<string, any>>('/customer/gettags', {
|
|
method: 'GET',
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /customer/setrate */
|
|
export async function customercontrollerSetrate(
|
|
body: Record<string, any>,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<Record<string, any>>('/customer/setrate', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'text/plain',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /customer/sync */
|
|
export async function customercontrollerSynccustomers(
|
|
body: Record<string, any>,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<Record<string, any>>('/customer/sync', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'text/plain',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|