summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/managemencs.service.ts
diff options
context:
space:
mode:
authorguochuyicmri <guochuyi@chinamobile.com>2019-05-05 10:10:50 +0800
committerguochuyicmri <guochuyi@chinamobile.com>2019-05-05 10:12:48 +0800
commitd0d32650fb14e4e556155475f21f00d6ab1d3ae0 (patch)
treeafe3a2b06c258ba59f74065e782df3ca3b35ca0f /usecaseui-portal/src/app/managemencs.service.ts
parent76cafb66f1897b971736a9c9bdf2e8f0fd5a9579 (diff)
Added monitor and user management logic
Change-Id: Iedca2ea71126529864baeec067b46050a1e0a67d Issue-ID: USECASEUI-228 Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/managemencs.service.ts')
-rw-r--r--usecaseui-portal/src/app/managemencs.service.ts45
1 files changed, 44 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/managemencs.service.ts b/usecaseui-portal/src/app/managemencs.service.ts
index 2bf06233..686d6180 100644
--- a/usecaseui-portal/src/app/managemencs.service.ts
+++ b/usecaseui-portal/src/app/managemencs.service.ts
@@ -1,8 +1,51 @@
import { Injectable } from '@angular/core';
+import { HttpClient, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';
+import { Observable } from 'rxjs/Observable';
+import {baseUrl} from './dataInterface';
+
@Injectable()
export class ManagemencsService {
- constructor() { }
+ constructor(private http: HttpClient) { }
+ baseUrl = baseUrl.baseUrl
+
+ /* location */
+ url = {
+ customers:this.baseUrl + "/customers/customers_list.json?",
+ serviceType:this.baseUrl + "/serviceTypes.json?*_*",
+ CustomersPir:this.baseUrl + "/customers/customersber.json?",
+ CustomersColumn:this.baseUrl + "/customers/customersber.json?",
+
+ }
+
+
+ /* line up */
+ // url = {
+ // customers:this.baseUrl + "/uui-lcm/customers",/* get */
+ // serviceType:this.baseUrl + "/uui-lcm/customers/"+"*_*"+"/service-subscriptions",/* get */
+ // CustomersPir:this.baseUrl + "/uui-lcm/serviceNumByCustomer",/* get */
+ // CustomersColumn:this.baseUrl + "/uui-lcm/serviceNumByServiceType/"+"*_*",/* get */
+ // }
+
+ // Get all customers
+ getAllCustomers() {
+ return this.http.get<any>(this.url.customers);
+ }
+ // get all servicetype
+ getServiceTypes(customer) {
+ let url = this.url.serviceType.replace("*_*", customer.id);
+ console.log(url)
+ return this.http.get<any>(url);
+ }
+ // get Customer Pir
+ getCustomersPie(){
+ return this.http.get<any>(this.url.CustomersPir);
+ }
+ // get Customer ber
+ getCustomersColumn(customer){
+ let url = this.url.CustomersColumn.replace("*_*", customer.id);
+ return this.http.get<any>(url);
+ }
}