ekangularbase
Version:
Authentication service for usermanagement(oidc client)
33 lines (27 loc) • 1.22 kB
text/typescript
import { Component, Inject, OnInit, Injectable } from '@angular/core';
import { HttpErrorHandler, HandleError } from '../../../src/auth/http-error-handler.service';
import { AuthService } from '../../../src/auth/auth.service';
import { HttpClient, HttpParams } from '@angular/common/http';
import { BaseService } from '../../../src/baseclass/BaseService';
import { AppConfig } from '../../../src/AppConfig/AppConfig';
import { RequireInteractiveControl } from '../../../src/interface/Interactive Component/RequireInteractiveControl';
()
export class OperatingCentreService extends BaseService<OperatingCentreClass>{
constructor(
public authService: AuthService,
public httpErrorHandler: HttpErrorHandler,
http: HttpClient,
('BASE_URL') baseUrl: string) {
super(authService,httpErrorHandler,http,AppConfig.settings.UserManagerSettings.authority,"OperatingCentres","umshared/");
}
}
export class OperatingCentreClass implements OperatingCentre,RequireInteractiveControl {
id: string;
isLocked: boolean;
code: string;
name: string;
shortName: string;
Add1: string;
Add2: string;
Add3: string;
}