import ServiceBase from "./ServiceBase"; import { IResponseNoData, IResponse } from "./interfaces/IResponse"; import MConfig from "./models/MConfig"; import IConfigGetListRequest from "./interfaces/configs/IConfigGetListRequest"; import IConfigGetListResponse from "./interfaces/configs/IConfigGetListResponse"; /** * 全局配置服务 */ export default class ConfigService extends ServiceBase { async getList(request: IConfigGetListRequest): Promise> { let res = await super.post('Config/GetList', request); return res; } async load(guid: string): Promise> { let request = { GUID: guid }; let res = await super.post('Config/Load', request); return res; } async set(request: MConfig): Promise { let res = await super.post('Config/Set', request); return res; } async delete(guids: Array): Promise { let request = { GUIDs: guids }; let res = await super.post('Config/Delete', request); return res; } async recovery() { } }