import { GatewayContactInfo } from "../model/gateway-contact-info.model"; import { GatewayContactInfoSearchParam } from "../search/gateway-contact-info-search-param.model"; import { GatewayContactInfoDto } from "../DTO/gateway-contact-info-dto.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 GatewayContactInfoService { static PATH = '/gateWayContactInfo'; constructor(private httpHandler: HttpHandler) {} createGatewayContactInfo(gatewayContactInfo: GatewayContactInfo, header?: any): Promise { return this.httpHandler.post(`${HostConfig.DEV_HOST}${GatewayContactInfoService.PATH}/create` ,gatewayContactInfo, header); } updateGatewayContactInfo(gatewayContactInfo: GatewayContactInfo, header?: any): Promise { return this.httpHandler.post(`${HostConfig.DEV_HOST}${GatewayContactInfoService.PATH}/update` ,gatewayContactInfo, header); } searchGatewayContactInfo(gatewayContactInfoSearchParam: GatewayContactInfoSearchParam,page: number,size: number, header?: any): Promise> { return this.httpHandler.post>(`${HostConfig.DEV_HOST}${GatewayContactInfoService.PATH}/search?page=${page}&size=${size}` ,gatewayContactInfoSearchParam, header); } searchGatewayContactInfo(gatewayContactInfoSearchParam: GatewayContactInfoSearchParam, header?: any): Promise> { return this.httpHandler.post>(`${HostConfig.DEV_HOST}${GatewayContactInfoService.PATH}/searchDTOList` ,gatewayContactInfoSearchParam, header); } delete(gatewayContactInfoSearchParam: GatewayContactInfoSearchParam, header?: any): Promise { return this.httpHandler.post(`${HostConfig.DEV_HOST}${GatewayContactInfoService.PATH}/delete` ,gatewayContactInfoSearchParam, header); } }