import ServiceBase from "./ServiceBase"; import { IResponseNoData, IResponse } from "./interfaces/IResponse"; import MGoodSupplier from "./models/MGoodSupplier"; import IGoodSupplierGetListRequest from "./interfaces/goodsuppliers/IGoodSupplierGetListRequest"; import IGoodSupplierGetListResponse from "./interfaces/goodsuppliers/IGoodSupplierGetListResponse"; /** * 商品供应商服务 */ export default class GoodSupplierService extends ServiceBase { async getList(request: IGoodSupplierGetListRequest): Promise> { let res = await super.post('GoodSupplier/GetList', request); return res; } async getListByKeyword(request: any) { let res = await super.post('GoodSupplier/GetListByKeyword', request); return res; } async load(guid: string): Promise> { let request = { GUID: guid }; let res = await super.post('GoodSupplier/Load', request); return res; } async set(request: MGoodSupplier): Promise { let res = await super.post('GoodSupplier/Set', request); return res; } async setEnabled(guid: string, isEnabled: boolean): Promise { let request = { GUID: guid, IsEnabled: isEnabled }; let res = await super.post('GoodSupplier/SetEnabled', request); return res; } async delete(guids: Array): Promise { let request = { GUIDs: guids }; let res = await super.post('GoodSupplier/Delete', request); return res; } async recovery() { } async exportGoodSupplier() { } }