wupengfei
2025-02-21 64b52fa928e11640e8d6aad49bd39cd27c896543
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
 
/** 新增编辑保险机构 POST /api/InsureOrganization/CreateOrEditInsureOrganization */
export async function createOrEditInsureOrganization(
  body: API.CreateOrEditInsureOrganizationInput,
  options?: API.RequestConfig
) {
  return request<string>('/api/InsureOrganization/CreateOrEditInsureOrganization', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 删除保险机构 DELETE /api/InsureOrganization/DeleteInsureOrganization */
export async function deleteInsureOrganization(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIdeleteInsureOrganizationParams,
  options?: API.RequestConfig
) {
  return request<number>('/api/InsureOrganization/DeleteInsureOrganization', {
    method: 'DELETE',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 根据ID获取保险机构详情 GET /api/InsureOrganization/GetInsureOrganizationInfoById */
export async function getInsureOrganizationInfoById(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetInsureOrganizationInfoByIdParams,
  options?: API.RequestConfig
) {
  return request<API.InsureOrganizationDto>(
    '/api/InsureOrganization/GetInsureOrganizationInfoById',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
 
/** 获取保险机构列表 POST /api/InsureOrganization/GetInsureOrganizationList */
export async function getInsureOrganizationList(
  body: API.GetInsureOrganizationInput,
  options?: API.RequestConfig
) {
  return request<API.InsureOrganizationInfoDtoPageOutput>(
    '/api/InsureOrganization/GetInsureOrganizationList',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
 
/** 获取保险机构下拉列表 GET /api/InsureOrganization/GetInsureOrganizationListForSelect */
export async function getInsureOrganizationListForSelect(options?: API.RequestConfig) {
  return request<API.InsureOrganizationSelectDto[]>(
    '/api/InsureOrganization/GetInsureOrganizationListForSelect',
    {
      method: 'GET',
      ...(options || {}),
    }
  );
}
 
/** 设置状态 POST /api/InsureOrganization/SetInsureOrganizationStatus */
export async function setInsureOrganizationStatus(
  body: API.SetNormalStatusInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/InsureOrganization/SetInsureOrganizationStatus', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}