import { OrgContactInfo } from "../model/org-contact-info.model"; import { OrgContactInfoSearchParam } from "../search/org-contact-info-search-param.model"; import { OrgContactInfoDto } from "../DTO/org-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 OrgContactInfoService { static PATH = '/orgContactInfo'; constructor(private httpHandler: HttpHandler) {} createOrgContactInfo(orgContactInfo: OrgContactInfo, header?: any): Promise { return this.httpHandler.post(`${HostConfig.DEV_HOST}${OrgContactInfoService.PATH}/create` ,orgContactInfo, header); } updateOrgContactInfo(orgContactInfo: OrgContactInfo, header?: any): Promise { return this.httpHandler.post(`${HostConfig.DEV_HOST}${OrgContactInfoService.PATH}/update` ,orgContactInfo, header); } searchOrgContactInfo(orgContactInfoSearchParam: OrgContactInfoSearchParam,page: number,size: number, header?: any): Promise> { return this.httpHandler.post>(`${HostConfig.DEV_HOST}${OrgContactInfoService.PATH}/search?page=${page}&size=${size}` ,orgContactInfoSearchParam, header); } searchList(orgContactInfoSearchParame: OrgContactInfoSearchParam, header?: any): Promise> { return this.httpHandler.post>(`${HostConfig.DEV_HOST}${OrgContactInfoService.PATH}/searchDTOList` ,orgContactInfoSearchParame, header); } delete(orgContactInfoSearchParame: OrgContactInfoSearchParam, header?: any): Promise { return this.httpHandler.post(`${HostConfig.DEV_HOST}${OrgContactInfoService.PATH}/delete` ,orgContactInfoSearchParame, header); } }