import ServiceBase from "./ServiceBase"; import { IResponseNoData, IResponse } from "./interfaces/IResponse"; import MEmployeeConfig from "./models/MEmployeeConfig"; import IEmployeeConfigGetListRequest from "./interfaces/employeeconfigs/IEmployeeConfigGetListRequest"; import IEmployeeConfigGetListResponse from "./interfaces/employeeconfigs/IEmployeeConfigGetListResponse"; /** * 员工配置服务 */ export default class EmployeeConfigService extends ServiceBase { async getList(request: IEmployeeConfigGetListRequest): Promise> { let res = await super.post('EmployeeConfig/GetList', request); return res; } async load(guid: string): Promise> { let request = { GUID: guid }; let res = await super.post('EmployeeConfig/Load', request); return res; } async getByName(configName: string) { let request = { ConfigName: configName }; let res = await super.post('EmployeeConfig/GetByName', request); return res; } async set(request: MEmployeeConfig): Promise { let res = await super.post('EmployeeConfig/Set', request); return res; } async delete(guids: Array): Promise { let request = { GUIDs: guids }; let res = await super.post('EmployeeConfig/Delete', request); return res; } async recovery() { } }