import ServiceBase from "./ServiceBase"; import { IResponseNoData, IResponse } from "./interfaces/IResponse"; import MMachinePort from "./models/MMachinePort"; import IMachinePortGetListRequest from "./interfaces/machineports/IMachinePortGetListRequest"; import IMachinePortGetListResponse from "./interfaces/machineports/IMachinePortGetListResponse"; /** * 机台端口服务 */ export default class MachinePortService extends ServiceBase { async getList(request: IMachinePortGetListRequest): Promise> { let res = await super.post('MachinePort/GetList', request); return res; } async load(guid: string): Promise> { let request = { GUID: guid }; let res = await super.post('MachinePort/Load', request); return res; } async getListByKeyword() { } async getMachinePortByMachineName() { } async set(request: MMachinePort): Promise { let res = await super.post('MachinePort/Set', request); return res; } async delete(guids: Array): Promise { let request = { GUIDs: guids }; let res = await super.post('MachinePort/Delete', request); return res; } async recovery() { } async exportMachinePort() { } }