import ServiceBase from "./ServiceBase"; import MBusinessConfig from "./models/MBusinessConfig"; import { IResponseNoData, IResponse } from "./interfaces/IResponse"; import IBusinessGetListResponse from "./interfaces/businesses/IBusinessGetListResponse"; import IBusinessGetListRequest from "./interfaces/businesses/IBusinessGetListRequest"; import IBusinessConfigSetRequest from "./interfaces/businessconfigs/IBusinessConfigSetRequest"; /** * 商家配置服务 */ export default class BusinessConfigService extends ServiceBase { /** * 获取商家配置列表 * @param request 请求参数 */ async getList(request: IBusinessGetListRequest): Promise { let res = await super.post('BusinessConfig/GetList', request); return res; } /** * 根据GUID获取商家配置 * @param guid 商家配置GUID */ async load(guid: string): Promise> { let request = { GUID: guid }; let res = await super.post('BusinessConfig/Load', request); return res; } /** * * @param request */ async set(request: IBusinessConfigSetRequest): Promise { let res = await super.post('BusinessConfig/Set', request); return res; } async delete(guids: Array): Promise { let request = { GUIDs: guids }; let res = await super.post('BusinessConfig/Delete', request); return res; } async recovery() { } async reset() { } }