wupengfei
5 天以前 bed3ed84e17796ade03d35939b62cdbb11daf2c6
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
 
/** 查询企业详情 GET /api/user/enterprise/getEnterprise */
export async function getEnterprise(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetEnterpriseParams,
  options?: API.RequestConfig
) {
  return request<API.GetEnterpriseQueryResult>('/api/user/enterprise/getEnterprise', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 查询企业电子签配置 GET /api/user/enterprise/getEnterpriseElectronSignSetting */
export async function getEnterpriseElectronSignSetting(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetEnterpriseElectronSignSettingParams,
  options?: API.RequestConfig
) {
  return request<API.GetEnterpriseElectronSignSettingQueryResult>(
    '/api/user/enterprise/getEnterpriseElectronSignSetting',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
 
/** 查询企业信息分页列表数据 POST /api/user/enterprise/getEnterprises */
export async function getEnterprises(body: API.GetEnterprisesQuery, options?: API.RequestConfig) {
  return request<API.PagedListQueryResultGetEnterprisesQueryResultItem>(
    '/api/user/enterprise/getEnterprises',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json-patch+json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
 
/** 查询企业短信配置 GET /api/user/enterprise/getEnterpriseSmsSetting */
export async function getEnterpriseSmsSetting(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetEnterpriseSmsSettingParams,
  options?: API.RequestConfig
) {
  return request<API.GetEnterpriseSmsSettingQueryResult>(
    '/api/user/enterprise/getEnterpriseSmsSetting',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
 
/** 查询客户详情(甲方企业) GET /api/user/enterprise/getPartyAEnterprise */
export async function getPartyAEnterprise(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetPartyAEnterpriseParams,
  options?: API.RequestConfig
) {
  return request<API.GetPartyAEnterpriseQueryResult>('/api/user/enterprise/getPartyAEnterprise', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 查询客户管理(甲方客户) POST /api/user/enterprise/getPartyAEnterprises */
export async function getPartyAEnterprises(
  body: API.GetPartyAEnterprisesQuery,
  options?: API.RequestConfig
) {
  return request<API.PagedListQueryResultGetPartyAEnterprisesQueryResultItem>(
    '/api/user/enterprise/getPartyAEnterprises',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json-patch+json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
 
/** 查询供应商管理 POST /api/user/enterprise/getSupplierEnterprises */
export async function getSupplierEnterprises(
  body: API.GetSupplierEnterprisesQuery,
  options?: API.RequestConfig
) {
  return request<API.PagedListQueryResultGetSupplierEnterprisesQueryResultItem>(
    '/api/user/enterprise/getSupplierEnterprises',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json-patch+json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
 
/** 查询供应商选择器数据 GET /api/user/enterprise/getSupplierEnterpriseSelect */
export async function getSupplierEnterpriseSelect(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetSupplierEnterpriseSelectParams,
  options?: API.RequestConfig
) {
  return request<API.SelectOptionGuidGetSupplierEnterpriseSelectQueryOption[]>(
    '/api/user/enterprise/getSupplierEnterpriseSelect',
    {
      method: 'GET',
      params: {
        ...params,
        request: undefined,
        ...params['request'],
      },
      ...(options || {}),
    }
  );
}
 
/** 保存企业 POST /api/user/enterprise/saveEnterprise */
export async function saveEnterprise(body: API.SaveEnterpriseCommand, options?: API.RequestConfig) {
  return request<string>('/api/user/enterprise/saveEnterprise', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 保存企业费用 POST /api/user/enterprise/saveEnterpriseCost */
export async function saveEnterpriseCost(
  body: API.SaveEnterpriseCostCommand,
  options?: API.RequestConfig
) {
  return request<string>('/api/user/enterprise/saveEnterpriseCost', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 添加客户企业(甲方企业) POST /api/user/enterprise/savePartyAEnterprise */
export async function savePartyAEnterprise(
  body: API.SavePartyAEnterpriseCommand,
  options?: API.RequestConfig
) {
  return request<string>('/api/user/enterprise/savePartyAEnterprise', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 设置企业电子签配置 PUT /api/user/enterprise/setEnterpriseElectronSignSetting */
export async function setEnterpriseElectronSignSetting(
  body: API.SetEnterpriseElectronSignSettingCommand,
  options?: API.RequestConfig
) {
  return request<string>('/api/user/enterprise/setEnterpriseElectronSignSetting', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 设置企业短信配置 PUT /api/user/enterprise/setEnterpriseSmsSetting */
export async function setEnterpriseSmsSetting(
  body: API.SetEnterpriseSmsSettingCommand,
  options?: API.RequestConfig
) {
  return request<string>('/api/user/enterprise/setEnterpriseSmsSetting', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}