wupengfei
1 天以前 27652573ea8a58d5593791e27b4d326f84187093
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
52
53
54
55
56
57
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
 
/** 查询企业保险产品分页列表 POST /api/flexjob/enterpriseInsuranceProduct/getEnterpriseInsuranceProducts */
export async function getEnterpriseInsuranceProducts(
  body: API.GetEnterpriseInsuranceProductsQuery,
  options?: API.RequestConfig
) {
  return request<API.GetEnterpriseInsuranceProductsQueryResult>(
    '/api/flexjob/enterpriseInsuranceProduct/getEnterpriseInsuranceProducts',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json-patch+json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
 
/** 查询企业保险产品选择器数据 GET /api/flexjob/enterpriseInsuranceProduct/getEnterpriseInsuranceProductSelect */
export async function getEnterpriseInsuranceProductSelect(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetEnterpriseInsuranceProductSelectParams,
  options?: API.RequestConfig
) {
  return request<API.SelectOptionNullableGuidGetEnterpriseInsuranceProductSelectQueryOption[]>(
    '/api/flexjob/enterpriseInsuranceProduct/getEnterpriseInsuranceProductSelect',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
 
/** 设置企业投保产品状态 PUT /api/flexjob/enterpriseInsuranceProduct/setDisabledEnterpriseInsuranceProducts */
export async function setDisabledEnterpriseInsuranceProducts(
  body: API.SetDisabledEnterpriseInsuranceProductsCommand,
  options?: API.RequestConfig
) {
  return request<number>(
    '/api/flexjob/enterpriseInsuranceProduct/setDisabledEnterpriseInsuranceProducts',
    {
      method: 'PUT',
      headers: {
        'Content-Type': 'application/json-patch+json',
      },
      data: body,
      ...(options || {}),
    }
  );
}