summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/core
diff options
context:
space:
mode:
authorliuwh7 <liuwh7@asiainfo.com>2021-03-08 18:34:19 +0800
committerliu wenhao <liuwh7@asiainfo.com>2021-03-09 03:14:04 +0000
commitfe0373c48edc239b3c69a923be17d1d4dc34143f (patch)
tree256e446b9742f250ab5dccd37586eaff2d9e3b83 /usecaseui-portal/src/app/core
parent081feab4ae091216a274052ffe0c7f8dbe2f80e2 (diff)
feat:commit UUI front end code
Change-Id: I4cf28e3b9e6f3ea44b52f028f5dfd70fbf650853 Signed-off-by: liuwh7 <liuwh7@asiainfo.com> Issue-ID: USECASEUI-525
Diffstat (limited to 'usecaseui-portal/src/app/core')
-rw-r--r--usecaseui-portal/src/app/core/services/onboard.service.ts21
1 files changed, 19 insertions, 2 deletions
diff --git a/usecaseui-portal/src/app/core/services/onboard.service.ts b/usecaseui-portal/src/app/core/services/onboard.service.ts
index e7b1bfc6..20d9c244 100644
--- a/usecaseui-portal/src/app/core/services/onboard.service.ts
+++ b/usecaseui-portal/src/app/core/services/onboard.service.ts
@@ -27,12 +27,14 @@ export class onboardService {
onboardTableData: this.baseUrl + "/uui-lcm/ns-packages",
onboardDataVNF: this.baseUrl + "/uui-lcm/vnf-packages",
onboardDataPNF: this.baseUrl + "/uui-lcm/pnf-packages",
+ onboardDataModel: this.baseUrl + "/intent/listModel",
sdc_nsListData: this.baseUrl + "/uui-lcm/sdc-ns-packages", // GET
sdc_vnfListData: this.baseUrl + "/uui-lcm/sdc-vf-packages", // GET
onboardNs: this.baseUrl + "/uui-lcm/ns-packages", //POST
-
+ analysisInput: this.baseUrl + "/intent/predict", //POST
onboardVNF: this.baseUrl + "/uui-lcm/vf-packages", //POST
deleteNspack: this.baseUrl + "/uui-lcm/deleteNsdPackage",
+ deleteModelpack: this.baseUrl + "/intent/deleteModel",
// Delete Vnf vfc package
deleteVnfPack: this.baseUrl + "/uui-lcm/deleteVnfPackage",
// Delete Pnf package
@@ -64,6 +66,17 @@ export class onboardService {
getOnboardTablePnfData() {
return this.http.get<any>(this.url.onboardDataPNF);
}
+ // MODEL Data
+ getOnboardTableModelData() {
+ return this.http.get<any>(this.url.onboardDataModel);
+ }
+ // MODEL Data
+ getOnboardTableActiveModelData(url) {
+ return this.http.get<any>(url);
+ }
+ analysisInputText(requestBody) {
+ return this.http.post<any>(this.url["analysisInput"], requestBody);
+ }
//onboard sdc ns
getNsonboard(requestBody) {
return this.http.post<any>(this.url["onboardNs"], requestBody);
@@ -87,7 +100,11 @@ export class onboardService {
let params = new HttpParams({ fromObject: {"pnfdInfoId":paramsObj }});
return this.http.delete<any>(this.url.deletePnfPack , {params});
}
-
+ // Delete model package
+ deleteModelIdData(paramsObj) {
+ let params = new HttpParams({ fromObject: { "modelId": paramsObj }});
+ return this.http.delete<any>(this.url.deleteModelpack,{params});
+ }
// The following APIs function are not optimizable-------------------
//create--Get the id after dragging the file before uploading