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