aboutsummaryrefslogtreecommitdiffstats
path: root/usecaseui-portal
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2019-09-29 14:50:27 +0800
committercyuamber <xuranyjy@chinamobile.com>2019-09-29 14:50:31 +0800
commit7e93b16cf903c308909e8ee2ef69c56140b06985 (patch)
tree9eadf8465d07bd21fd9a3ce5c96af11faf390b58 /usecaseui-portal
parente564a3e86e3880269290c9712b097336ab6db28e (diff)
feat:optimize data type definition and data type reference
Change-Id: I640e9500556cb20783a4e1f604bc334a740ddeac Issue-ID: USECASEUI-307 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal')
-rw-r--r--usecaseui-portal/src/app/core/models/dataInterface.ts47
-rw-r--r--usecaseui-portal/src/app/core/services/serviceList.service.ts2
2 files changed, 2 insertions, 47 deletions
diff --git a/usecaseui-portal/src/app/core/models/dataInterface.ts b/usecaseui-portal/src/app/core/models/dataInterface.ts
index 012b23e6..969651f4 100644
--- a/usecaseui-portal/src/app/core/models/dataInterface.ts
+++ b/usecaseui-portal/src/app/core/models/dataInterface.ts
@@ -2,55 +2,10 @@ enum baseUrl{
baseUrl = '/api/usecaseui-server/v1' //online
// baseUrl = 'http://10.73.191.100:8082' //local two
}
-interface homeData {
- services:{
- number:number,
- chartdata:Object[]
- },
- performance:{
- per_Vnf:number,
- per_VmPm:number
- },
- alarm:{
- chartdata:Object[]
- },
- Vm_performance:{
- names:string[]
- }
-};
-
-interface homeVmLineData {
- CPU:number[],
- Memory:number[]
-}
-
-interface servicesSelectData {
- customer:string[],
- serviceType:string[]
-}
interface servicesTableData {
total:number,
tableList:string[]
}
-interface creatensData {
- total:number,
- tableList:string[]
-}
-
-interface onboardTableData {
- total:number,
- tableList:string[]
-}
-
-interface onboardDataVNF {
- total:number,
- tableList:string[]
-}
-
-interface onboardDataPNF {
- total:number,
- tableList:string[]
-}
-export {homeData, homeVmLineData, servicesSelectData, servicesTableData, creatensData, onboardTableData, onboardDataVNF, onboardDataPNF , baseUrl}
+export {servicesTableData , baseUrl}
diff --git a/usecaseui-portal/src/app/core/services/serviceList.service.ts b/usecaseui-portal/src/app/core/services/serviceList.service.ts
index 7953bc61..de3722c1 100644
--- a/usecaseui-portal/src/app/core/services/serviceList.service.ts
+++ b/usecaseui-portal/src/app/core/services/serviceList.service.ts
@@ -16,7 +16,7 @@
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs/Observable';
-import { homeData, homeVmLineData, servicesSelectData, servicesTableData, creatensData, onboardTableData, onboardDataVNF, onboardDataPNF, baseUrl } from '../models/dataInterface';
+import { servicesTableData,baseUrl } from '../models/dataInterface';
@Injectable()
export class ServiceListService {