import { ResPage, StaffConfig } from "@/api/interface/index";
import { PORT_NONE } from "@/api/config/servicePort";
import http from "@/api";

/**
 * @name 员工配置管理模块
 */

// 获取员工配置列表
export const getStaffConfigList = (params: StaffConfig.StaffConfigParams) => {
  return http.get<ResPage<StaffConfig.StaffConfigParams>>(PORT_NONE + `/storeStaffConfig/getStaffConfigList`, params);
};

// 审核员工配置
export const audit = params => {
  return http.get<ResPage<StaffConfig.StaffConfigParams>>(PORT_NONE + `/storeStaffConfig/audit`, params);
};

// 员工详情
export const getStaffConfigDeatail = (params: { id: string }) => {
  return http.get(PORT_NONE + `/storeStaffConfig/getStaffConfigDeatail`, params);
};

// 员工信息查询页面导出excel
export const exportExcelStaffConfig = (params: { status?: string }) => {
  return http.get(PORT_NONE + `/storeStaffConfig/staffConfigExport`, params);
};
