/* eslint-disable */
|
// @ts-ignore
|
import { request } from '@/utils/request';
|
|
/** 查询保险产品分页列表 POST /api/flexjob/insuranceProduct/getInsuranceProducts */
|
export async function getInsuranceProducts(
|
body: API.GetInsuranceProductsQuery,
|
options?: API.RequestConfig
|
) {
|
return request<API.GetInsuranceProductsQueryResult>(
|
'/api/flexjob/insuranceProduct/getInsuranceProducts',
|
{
|
method: 'POST',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
}
|
);
|
}
|
|
/** 保存保险产品 POST /api/flexjob/insuranceProduct/saveInsuranceProduct */
|
export async function saveInsuranceProduct(
|
body: API.SaveInsuranceProductCommand,
|
options?: API.RequestConfig
|
) {
|
return request<string>('/api/flexjob/insuranceProduct/saveInsuranceProduct', {
|
method: 'POST',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 设置保险产品状态 PUT /api/flexjob/insuranceProduct/setIsDisabledInsuranceProduct */
|
export async function setIsDisabledInsuranceProduct(
|
body: API.SetIsDisabledInsuranceProductCommand,
|
options?: API.RequestConfig
|
) {
|
return request<number>('/api/flexjob/insuranceProduct/setIsDisabledInsuranceProduct', {
|
method: 'PUT',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|