From 7e93b16cf903c308909e8ee2ef69c56140b06985 Mon Sep 17 00:00:00 2001 From: cyuamber Date: Sun, 29 Sep 2019 14:50:27 +0800 Subject: feat:optimize data type definition and data type reference Change-Id: I640e9500556cb20783a4e1f604bc334a740ddeac Issue-ID: USECASEUI-307 Signed-off-by: cyuamber --- .../src/app/core/models/dataInterface.ts | 47 +--------------------- .../src/app/core/services/serviceList.service.ts | 2 +- 2 files changed, 2 insertions(+), 47 deletions(-) (limited to 'usecaseui-portal/src/app/core') 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 { -- cgit 1.2.3-korg