wupengfei
13 小时以前 d3d8fde64c4df263fd696f1599cb79fe9efb7623
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
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
 
/** 编辑灵工信息 POST /api/user/enterpriseEmployee/editEnterpriseEmployee */
export async function editEnterpriseEmployee(
  body: API.EditEnterpriseEmployeeCommand,
  options?: API.RequestConfig
) {
  return request<string>('/api/user/enterpriseEmployee/editEnterpriseEmployee', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 企业用户签约 POST /api/user/enterpriseEmployee/enterpriseUserElectronSign */
export async function enterpriseUserElectronSign(
  body: API.EnterpriseUserElectronSignCommand,
  options?: API.RequestConfig
) {
  return request<API.EnterpriseUserElectronSignCommandResult>(
    '/api/user/enterpriseEmployee/enterpriseUserElectronSign',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json-patch+json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
 
/** 查询灵工详情 GET /api/user/enterpriseEmployee/getEnterpriseEmployee */
export async function getEnterpriseEmployee(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetEnterpriseEmployeeParams,
  options?: API.RequestConfig
) {
  return request<API.GetEnterpriseEmployeeQueryResult>(
    '/api/user/enterpriseEmployee/getEnterpriseEmployee',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
 
/** 查询灵工分页列表数据 POST /api/user/enterpriseEmployee/getEnterpriseEmployees */
export async function getEnterpriseEmployees(
  body: API.GetEnterpriseEmployeesQuery,
  options?: API.RequestConfig
) {
  return request<API.GetEnterpriseEmployeesQueryResult>(
    '/api/user/enterpriseEmployee/getEnterpriseEmployees',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json-patch+json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
 
/** 查询个人用户签约详情 GET /api/user/enterpriseEmployee/getPersonalUserElectronSign */
export async function getPersonalUserElectronSign(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetPersonalUserElectronSignParams,
  options?: API.RequestConfig
) {
  return request<API.GetPersonalUserElectronSignQueryResult>(
    '/api/user/enterpriseEmployee/getPersonalUserElectronSign',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
 
/** 查询个人用户签约列表 POST /api/user/enterpriseEmployee/getPersonalUserElectronSigns */
export async function getPersonalUserElectronSigns(
  body: API.GetPersonalUserElectronSignsQuery,
  options?: API.RequestConfig
) {
  return request<API.GetPersonalUserElectronSignsQueryResult>(
    '/api/user/enterpriseEmployee/getPersonalUserElectronSigns',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json-patch+json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
 
/** 导入灵工信息 POST /api/user/enterpriseEmployee/importEnterpriseEmployees */
export async function importEnterpriseEmployees(
  body: API.ImportEnterpriseEmployeesCommand,
  options?: API.RequestConfig
) {
  return request<API.ImportEnterpriseEmployeesCommandResult>(
    '/api/user/enterpriseEmployee/importEnterpriseEmployees',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json-patch+json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
 
/** 邀请灵工签约 POST /api/user/enterpriseEmployee/inviteElectronSign */
export async function inviteElectronSign(
  body: API.InviteElectronSignCommand,
  options?: API.RequestConfig
) {
  return request<string>('/api/user/enterpriseEmployee/inviteElectronSign', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 个人用户签约 POST /api/user/enterpriseEmployee/personalUserElectronSign */
export async function personalUserElectronSign(
  body: API.PersonalUserElectronSignCommand,
  options?: API.RequestConfig
) {
  return request<API.PersonalUserElectronSignCommandResult>(
    '/api/user/enterpriseEmployee/personalUserElectronSign',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json-patch+json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
 
/** 灵工解约 POST /api/user/enterpriseEmployee/stopElectronSign */
export async function stopElectronSign(
  body: API.StopElectronSignCommand,
  options?: API.RequestConfig
) {
  return request<string>('/api/user/enterpriseEmployee/stopElectronSign', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}