zhengyiming
2 天以前 f51b20beaeaaade5e3336b5eff749066c6a34b03
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
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
 
/** 查询灵工详情 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 || {}),
    }
  );
}