{"size": 676, "ext": "js", "max_stars_repo_path": "src/api/employees.js", "max_stars_repo_name": "clarayame/hrsaas-practice", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/api/employees.js", "max_issues_repo_name": "clarayame/hrsaas-practice", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/api/employees.js", "max_forks_repo_name": "clarayame/hrsaas-practice", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.037037037, "max_line_length": 95, "alphanum_fraction": 0.6227810651}
import request from '@/utils/request'
/**
 * 获取简化员工列表
 */
export const getEmployeeSimple = () => request({ url: '/sys/user/simple' })
/**
 * 获取员工列表
 * @param {Object} params 分页信息
 */
export const getEmployeeList = params => request({ url: '/sys/user', params })
/**
 * 添加员工
 * @param {Object} data 员工数据
 * @returns
 */
export const addEmployee = data => request({ url: 'sys/user', method: 'POST', data })
/**
 * 删除员工
 * @param {Number} id 员工ID
 */
export const delEmployee = id => request({ url: `/sys/user/${id}`, method: 'DELETE' })
/**
 * 导入员工
 * @param {Object} data 员工数据
 */
export const importEmployee = data => request({ url: '/sys/user/batch', method: 'POST', data })
