import ServiceBase from "./ServiceBase"; import { IResponseNoData, IResponse } from "./interfaces/IResponse"; import MMachineType from "./models/MMachineType"; import IMachineTypeGetListRequest from "./interfaces/machinetypes/IMachineTypeGetListRequest"; import IMachineTypeGetListResponse from "./interfaces/machinetypes/IMachineTypeGetListResponse"; /** * 机台分类服务 */ export default class MachineTypeService extends ServiceBase { async getList(request: IMachineTypeGetListRequest): Promise> { let res = await super.post('MachineType/GetList', request); return res; } async getListByKeyword() { } async load(guid: string): Promise> { let request = { GUID: guid }; let res = await super.post('MachineType/Load', request); return res; } async set(request: MMachineType): Promise { let res = await super.post('MachineType/Set', request); return res; } async setEnabled() { } async delete(guids: Array): Promise { let request = { GUIDs: guids }; let res = await super.post('MachineType/Delete', request); return res; } async recovery() { } async getMachineVersions() { } async getMachineStates() { } async exportMachineType() { } }