import { NotifyRuleDto2 } from "../DTO/notify-rule-dto2.model"; import { NotifyRule } from "../model/notify-rule.model"; import { NotifyRuleDto } from "../DTO/notify-rule-dto.model"; import { NotifyRuleSearchParam } from "../search/notify-rule-search-param.model"; import { NotifyRuleSet } from "../model/notify-rule-set.model"; import { NotifyRuleSetDto } from "../DTO/notify-rule-set-dto.model"; import { NotifyRuleSetSearchParam } from "../search/notify-rule-set-search-param.model"; import { HostConfig } from '../config/host.config'; import { Injectable } from '@angular/core'; import { HttpHandler } from './http-handler.service'; import { Page } from '../response/page.type'; @Injectable({ providedIn: 'root', }) export class NotifyRuleService { static PATH = '/notifyRule'; constructor(private httpHandler: HttpHandler) {} createLevel(notifyRule: NotifyRuleDto2, header?: any): Promise { return this.httpHandler.post(`${HostConfig.DEV_HOST}${NotifyRuleService.PATH}/createLevel` ,notifyRule, header); } updateNotifyRule(notifyRule: NotifyRule, header?: any): Promise { return this.httpHandler.post(`${HostConfig.DEV_HOST}${NotifyRuleService.PATH}/update` ,notifyRule, header); } delete(notifyRule: NotifyRule, header?: any): Promise { return this.httpHandler.post(`${HostConfig.DEV_HOST}${NotifyRuleService.PATH}/delete` ,notifyRule, header); } updateLevel(notifyRule: NotifyRuleDto, header?: any): Promise { return this.httpHandler.post(`${HostConfig.DEV_HOST}${NotifyRuleService.PATH}/updateLevel` ,notifyRule, header); } updateLevelName(notifyRule: NotifyRule, header?: any): Promise { return this.httpHandler.(`${HostConfig.DEV_HOST}${NotifyRuleService.PATH}` ,notifyRule, header); } deleteLevel(notifyRule: NotifyRule, header?: any): Promise { return this.httpHandler.post(`${HostConfig.DEV_HOST}${NotifyRuleService.PATH}/deleteLevel` ,notifyRule, header); } searchList(notifyRuleSearchParam: NotifyRuleSearchParam, header?: any): Promise> { return this.httpHandler.post>(`${HostConfig.DEV_HOST}${NotifyRuleService.PATH}/searchList` ,notifyRuleSearchParam, header); } searchLevel(notifyRuleSearchParam: NotifyRuleSearchParam, header?: any): Promise> { return this.httpHandler.post>(`${HostConfig.DEV_HOST}${NotifyRuleService.PATH}/searchLevel` ,notifyRuleSearchParam, header); } createNotifyRuleSet(notifyRuleSet: NotifyRuleSet, header?: any): Promise { return this.httpHandler.post(`${HostConfig.DEV_HOST}${NotifyRuleService.PATH}/createNotifyRuleSet` ,notifyRuleSet, header); } searchSetList(notifyRuleSetSearchParam: NotifyRuleSetSearchParam, header?: any): Promise> { return this.httpHandler.post>(`${HostConfig.DEV_HOST}${NotifyRuleService.PATH}/searchSetList` ,notifyRuleSetSearchParam, header); } updateSet(notifyRuleSetDTO: NotifyRuleSetDto, header?: any): Promise { return this.httpHandler.post(`${HostConfig.DEV_HOST}${NotifyRuleService.PATH}/updateSet` ,notifyRuleSetDTO, header); } deleteSet(notifyRuleSetDTO: NotifyRuleSetDto, header?: any): Promise { return this.httpHandler.post(`${HostConfig.DEV_HOST}${NotifyRuleService.PATH}/deleteSet` ,notifyRuleSetDTO, header); } }