summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/core/services/intentBase.service.ts
diff options
context:
space:
mode:
authorKeguang He <hekeguang@chinamobile.com>2022-03-21 07:30:40 +0000
committerGerrit Code Review <gerrit@onap.org>2022-03-21 07:30:40 +0000
commit0b9d6ded59f73d8f48975f66481053c85fb17cd5 (patch)
treead135c3d63e894adc7e2f22220d4ea958e23b0b6 /usecaseui-portal/src/app/core/services/intentBase.service.ts
parent067fe18168fae8b5cf5ac211dcf1f52f476e8bb7 (diff)
parentdc2d38249ca5ac3127c260745af6251604e35a80 (diff)
Merge "feat: intent instance management"
Diffstat (limited to 'usecaseui-portal/src/app/core/services/intentBase.service.ts')
-rw-r--r--usecaseui-portal/src/app/core/services/intentBase.service.ts18
1 files changed, 17 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/core/services/intentBase.service.ts b/usecaseui-portal/src/app/core/services/intentBase.service.ts
index 7fb8104f..5ee8424a 100644
--- a/usecaseui-portal/src/app/core/services/intentBase.service.ts
+++ b/usecaseui-portal/src/app/core/services/intentBase.service.ts
@@ -34,7 +34,10 @@ export class intentBaseService {
invalidIntentInstance: this.baseUrl + "/intent/invalidIntentInstance",
queryAccessNodeInfo: this.baseUrl + "/intent/queryAccessNodeInfo",
intentInstancePredict: this.baseUrl + "/intent/predict",
- intentBasedUnifyPredict: this.baseUrl + "/intent/unifyPredict"
+ intentBasedUnifyPredict: this.baseUrl + "/intent/unifyPredict",
+ getIntentInstanceList: this.baseUrl + "/intent/getIntentList",
+ delIntentInstance: this.baseUrl + "/intent/deleteIntent",
+ verifyIntentInstance: this.baseUrl + "/intent/verifyIntentInstance"
};
//The following APIs function are optimizable------------------------
@@ -88,4 +91,17 @@ export class intentBaseService {
intentBasedUnifyPredict(requestBody) {
return this.http.post<any>(this.url["intentBasedUnifyPredict"], requestBody);
}
+
+ getIntentInstanceList(paramsObj) {
+ return this.http.post<any>(this.url["getIntentInstanceList"], paramsObj);
+ }
+
+ delIntentInstance(id) {
+ let params = new HttpParams({ fromObject: { "id": id } });
+ return this.http.delete<any>(this.url['delIntentInstance'], { params });
+ }
+
+ verifyIntentInstance(paramsObj) {
+ return this.http.post<any>(this.url['verifyIntentInstance'], paramsObj);
+ }
}