gaoluyang
57 分钟以前 cb9cd49627b65a4c0e137e08063271a8cefe1826
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
import type { HrmEmployeeApi } from '../index';
 
import { requestClient } from '#/api/request';
 
/** 查询工作经历列表 */
export function getWorkHistoryListByEmployeeId(employeeId: number) {
  return requestClient.get<HrmEmployeeApi.WorkHistory[]>(
    `/hrm/employee/work-history/list?employeeId=${employeeId}`,
  );
}
 
/** 新增工作经历 */
export function createWorkHistory(data: HrmEmployeeApi.WorkHistory) {
  return requestClient.post('/hrm/employee/work-history/create', data);
}
 
/** 更新工作经历 */
export function updateWorkHistory(data: HrmEmployeeApi.WorkHistory) {
  return requestClient.put('/hrm/employee/work-history/update', data);
}
 
/** 删除工作经历 */
export function deleteWorkHistory(id: number) {
  return requestClient.delete(`/hrm/employee/work-history/delete?id=${id}`);
}