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