import { OrgBuildType } from "../model/org-build-type.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 OrgBuildTypeService { static PATH = '/orgBuildType'; constructor(private httpHandler: HttpHandler) {} create(orgBuildType: OrgBuildType, header?: any): Promise { return this.httpHandler.post(`${HostConfig.DEV_HOST}${OrgBuildTypeService.PATH}/create` ,orgBuildType, header); } update(orgBuildType: OrgBuildType, header?: any): Promise { return this.httpHandler.post(`${HostConfig.DEV_HOST}${OrgBuildTypeService.PATH}/update` ,orgBuildType, header); } findAll(header?: any): Promise> { return this.httpHandler.get>(`${HostConfig.DEV_HOST}${OrgBuildTypeService.PATH}/findAll`, header); } }