import ServiceBase from "./ServiceBase"; import { IResponseNoData, IResponse } from "./interfaces/IResponse"; import MCustomAccount from "./models/MCustomAccount"; import ICustomAccountGetListRequest from "./interfaces/customaccounts/ICustomAccountGetListRequest"; import ICustomAccountGetListResponse from "./interfaces/customaccounts/ICustomAccountGetListResponse"; /** * 自定义账户服务 */ export default class CustomAccountService extends ServiceBase { async getList(request: ICustomAccountGetListRequest): Promise> { let res = await super.post('CustomAccount/GetList', request); return res; } async load(guid: string): Promise> { let request = { GUID: guid }; let res = await super.post('CustomAccount/Load', request); return res; } async set(request: MCustomAccount): Promise { let res = await super.post('CustomAccount/Set', request); return res; } async delete(guids: Array): Promise { let request = { GUIDs: guids }; let res = await super.post('CustomAccount/Delete', request); return res; } async recovery() { } async setEnabled(guid: string, isEnabled: boolean): Promise { let request = { GUID: guid, IsEnabled: isEnabled }; let res = await super.post('CustomAccount/SetEnabled', request); return res; } async export() { } }