// @ts-ignore /* eslint-disable */ import { request } from 'umi'; /** 此处后端没有提供注释 POST /customer/ */ export async function customercontrollerCreatecustomer( body: API.CreateCustomerDTO, options?: { [key: string]: any }, ) { return request('/customer/', { method: 'POST', headers: { 'Content-Type': 'application/json', }, data: body, ...(options || {}), }); } /** 此处后端没有提供注释 GET /customer/${param0} */ export async function customercontrollerGetcustomerbyid( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.customercontrollerGetcustomerbyidParams, options?: { [key: string]: any }, ) { const { id: param0, ...queryParams } = params; return request(`/customer/${param0}`, { method: 'GET', params: { ...queryParams }, ...(options || {}), }); } /** 此处后端没有提供注释 PUT /customer/${param0} */ export async function customercontrollerUpdatecustomer( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.customercontrollerUpdatecustomerParams, body: API.UpdateCustomerDTO, options?: { [key: string]: any }, ) { const { id: param0, ...queryParams } = params; return request(`/customer/${param0}`, { method: 'PUT', headers: { 'Content-Type': 'application/json', }, params: { ...queryParams }, data: body, ...(options || {}), }); } /** 此处后端没有提供注释 DELETE /customer/${param0} */ export async function customercontrollerDeletecustomer( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.customercontrollerDeletecustomerParams, options?: { [key: string]: any }, ) { const { id: param0, ...queryParams } = params; return request>(`/customer/${param0}`, { method: 'DELETE', params: { ...queryParams }, ...(options || {}), }); } /** 此处后端没有提供注释 POST /customer/addtag */ export async function customercontrollerAddtag( body: API.CustomerTagDTO, options?: { [key: string]: any }, ) { return request>('/customer/addtag', { method: 'POST', headers: { 'Content-Type': 'application/json', }, data: body, ...(options || {}), }); } /** 此处后端没有提供注释 PUT /customer/batch */ export async function customercontrollerBatchupdatecustomers( body: API.BatchUpdateCustomerDTO, options?: { [key: string]: any }, ) { return request>('/customer/batch', { method: 'PUT', headers: { 'Content-Type': 'application/json', }, data: body, ...(options || {}), }); } /** 此处后端没有提供注释 POST /customer/batch */ export async function customercontrollerBatchcreatecustomers( body: API.BatchCreateCustomerDTO, options?: { [key: string]: any }, ) { return request>('/customer/batch', { method: 'POST', headers: { 'Content-Type': 'application/json', }, data: body, ...(options || {}), }); } /** 此处后端没有提供注释 DELETE /customer/batch */ export async function customercontrollerBatchdeletecustomers( body: API.BatchDeleteCustomerDTO, options?: { [key: string]: any }, ) { return request>('/customer/batch', { method: 'DELETE', headers: { 'Content-Type': 'application/json', }, data: body, ...(options || {}), }); } /** 此处后端没有提供注释 POST /customer/deltag */ export async function customercontrollerDeltag( body: API.CustomerTagDTO, options?: { [key: string]: any }, ) { return request>('/customer/deltag', { method: 'POST', headers: { 'Content-Type': 'application/json', }, data: body, ...(options || {}), }); } /** 此处后端没有提供注释 GET /customer/gettags */ export async function customercontrollerGettags(options?: { [key: string]: any; }) { return request>('/customer/gettags', { method: 'GET', ...(options || {}), }); } /** 此处后端没有提供注释 GET /customer/list */ export async function customercontrollerGetcustomerlist(options?: { [key: string]: any; }) { return request('/customer/list', { method: 'GET', ...(options || {}), }); } /** 此处后端没有提供注释 POST /customer/setrate */ export async function customercontrollerSetrate( body: Record, options?: { [key: string]: any }, ) { return request>('/customer/setrate', { method: 'POST', headers: { 'Content-Type': 'text/plain', }, data: body, ...(options || {}), }); } /** 此处后端没有提供注释 GET /customer/statistic/list */ export async function customercontrollerGetcustomerstatisticlist(options?: { [key: string]: any; }) { return request>('/customer/statistic/list', { method: 'GET', ...(options || {}), }); } /** 此处后端没有提供注释 POST /customer/sync */ export async function customercontrollerSynccustomers( body: API.SyncCustomersDTO, options?: { [key: string]: any }, ) { return request>('/customer/sync', { method: 'POST', headers: { 'Content-Type': 'application/json', }, data: body, ...(options || {}), }); }