// @ts-ignore /* eslint-disable */ import { request } from 'umi'; /** 此处后端没有提供注释 GET /category/ */ export async function categorycontrollerGetlist( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.categorycontrollerGetlistParams, options?: { [key: string]: any }, ) { return request('/category/', { method: 'GET', params: { ...params, pageSize: undefined, ...params['pageSize'], current: undefined, ...params['current'], }, ...(options || {}), }); } /** 此处后端没有提供注释 POST /category/ */ export async function categorycontrollerCreate( body: Record, options?: { [key: string]: any }, ) { return request('/category/', { method: 'POST', headers: { 'Content-Type': 'text/plain', }, data: body, ...(options || {}), }); } /** 此处后端没有提供注释 PUT /category/${param0} */ export async function categorycontrollerUpdate( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.categorycontrollerUpdateParams, body: Record, options?: { [key: string]: any }, ) { const { id: param0, ...queryParams } = params; return request(`/category/${param0}`, { method: 'PUT', headers: { 'Content-Type': 'text/plain', }, params: { ...queryParams }, data: body, ...(options || {}), }); } /** 此处后端没有提供注释 DELETE /category/${param0} */ export async function categorycontrollerDelete( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.categorycontrollerDeleteParams, options?: { [key: string]: any }, ) { const { id: param0, ...queryParams } = params; return request(`/category/${param0}`, { method: 'DELETE', params: { ...queryParams }, ...(options || {}), }); } /** 此处后端没有提供注释 GET /category/all */ export async function categorycontrollerGetall(options?: { [key: string]: any; }) { return request('/category/all', { method: 'GET', ...(options || {}), }); } /** 此处后端没有提供注释 POST /category/attribute */ export async function categorycontrollerCreatecategoryattribute( body: Record, options?: { [key: string]: any }, ) { return request('/category/attribute', { method: 'POST', headers: { 'Content-Type': 'text/plain', }, data: body, ...(options || {}), }); } /** 此处后端没有提供注释 GET /category/attribute/${param0} */ export async function categorycontrollerGetcategoryattributes( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.categorycontrollerGetcategoryattributesParams, options?: { [key: string]: any }, ) { const { categoryId: param0, ...queryParams } = params; return request(`/category/attribute/${param0}`, { method: 'GET', params: { ...queryParams }, ...(options || {}), }); } /** 此处后端没有提供注释 DELETE /category/attribute/${param0} */ export async function categorycontrollerDeletecategoryattribute( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.categorycontrollerDeletecategoryattributeParams, options?: { [key: string]: any }, ) { const { id: param0, ...queryParams } = params; return request(`/category/attribute/${param0}`, { method: 'DELETE', params: { ...queryParams }, ...(options || {}), }); }