| | |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 收藏标准订单服务 POST /api/flexjob/standardService/collectionStandardService */ |
| | | export async function collectionStandardService( |
| | | body: API.CollectionStandardServiceCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/flexjob/standardService/collectionStandardService', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 查询标准订单服务详情 GET /api/flexjob/standardService/getStandardService */ |
| | | export async function getStandardService( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | |
| | | ); |
| | | } |
| | | |
| | | /** 查询标准订单服务评论分页列表 POST /api/flexjob/standardService/getStandardServiceComments */ |
| | | export async function getStandardServiceComments( |
| | | body: API.GetStandardServiceCommentsQuery, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetStandardServiceCommentsQueryResult>( |
| | | '/api/flexjob/standardService/getStandardServiceComments', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询标准订单服务分页列表 POST /api/flexjob/standardService/getStandardServices */ |
| | | export async function getStandardServices( |
| | | body: API.GetStandardServicesQuery, |
| | |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 设置标准订单服务是否推荐 PUT /api/flexjob/standardService/setStandardServiceRecommendStatus */ |
| | | export async function setStandardServiceRecommendStatus( |
| | | body: API.SetStandardServiceRecommendStatusCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/flexjob/standardService/setStandardServiceRecommendStatus', { |
| | | method: 'PUT', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 设置标准订单服务发布状态 PUT /api/flexjob/standardService/setStandardServiceReleaseStatus */ |
| | | export async function setStandardServiceReleaseStatus( |
| | | body: API.SetStandardServiceReleaseStatusCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/flexjob/standardService/setStandardServiceReleaseStatus', { |
| | | method: 'PUT', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |