wupengfei
1 天以前 e81667dd6befdd9aa2bb130ceac18eed03fb45b0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* 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 || {}),
  });
}