58 lines
2.3 KiB
TypeScript
58 lines
2.3 KiB
TypeScript
/**
|
|
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
|
* No deletion without permission, or be held responsible to law.
|
|
* @author gaoxq
|
|
*/
|
|
import { defHttp } from '@jeesite/core/utils/http/axios';
|
|
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
|
import { BasicModel, Page } from '@jeesite/core/api/model/baseModel';
|
|
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
|
import { UploadFileParams } from '@jeesite/types/axios';
|
|
import { AxiosProgressEvent } from 'axios';
|
|
|
|
const { ctxPath, adminPath } = useGlobSetting();
|
|
|
|
export interface BizResumeEmployee extends BasicModel<BizResumeEmployee> {
|
|
createTime?: string; // 记录时间
|
|
employeeId: string; // 唯一标识
|
|
employeeName?: string; // 员工姓名
|
|
employeeCode?: string; // 员工编号
|
|
email?: string; // 电子邮件
|
|
phoneNumber?: string; // 移动电话
|
|
sex?: string; // 性别
|
|
employeePosition?: string; // 职位
|
|
hireDate?: string; // 入职日期
|
|
employeeStatus?: string; // 状态
|
|
ftenantId: string; // 租户id
|
|
fflowId?: string; // 流程id
|
|
fflowTaskId?: string; // 流程任务主键
|
|
fflowState?: number; // 流程任务状态
|
|
}
|
|
|
|
export const bizResumeEmployeeList = (params?: BizResumeEmployee | any) =>
|
|
defHttp.get<BizResumeEmployee>({ url: adminPath + '/biz/resumeEmployee/list', params });
|
|
|
|
export const bizResumeEmployeeListData = (params?: BizResumeEmployee | any) =>
|
|
defHttp.post<Page<BizResumeEmployee>>({ url: adminPath + '/biz/resumeEmployee/listData', params });
|
|
|
|
export const bizResumeEmployeeForm = (params?: BizResumeEmployee | any) =>
|
|
defHttp.get<BizResumeEmployee>({ url: adminPath + '/biz/resumeEmployee/form', params });
|
|
|
|
export const bizResumeEmployeeSave = (params?: any, data?: BizResumeEmployee | any) =>
|
|
defHttp.postJson<BizResumeEmployee>({ url: adminPath + '/biz/resumeEmployee/save', params, data });
|
|
|
|
export const bizResumeEmployeeImportData = (
|
|
params: UploadFileParams,
|
|
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
|
) =>
|
|
defHttp.uploadFile<UploadApiResult>(
|
|
{
|
|
url: ctxPath + adminPath + '/biz/resumeEmployee/importData',
|
|
onUploadProgress,
|
|
},
|
|
params,
|
|
);
|
|
|
|
export const bizResumeEmployeeDelete = (params?: BizResumeEmployee | any) =>
|
|
defHttp.get<BizResumeEmployee>({ url: adminPath + '/biz/resumeEmployee/delete', params });
|