This commit is contained in:
2023-10-26 11:49:48 +07:00
parent 4476d9d2dc
commit b98c2051e9
5 changed files with 41 additions and 13 deletions

View File

@@ -0,0 +1,22 @@
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { BaseService } from 'src/app/core/base/base-service';
import { environment } from 'src/environments/environment';
@Injectable({
providedIn: 'root'
})
export class CathayAuthService extends BaseService{
API_URL = environment.CATHAYAPIURL
constructor(
public http: HttpClient
) {
super('', http)
super.fullUrl = `${this.API_URL}/v1/User`
}
login(payload : {'mobileDeviceId': string , 'userName': string , 'password' : string}){
return this.http.post(`${this.fullUrl}/login`, payload)
}
}