summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/core
diff options
context:
space:
mode:
authorzoulingli128 <zll_1208@126.com>2022-09-23 15:29:46 +0800
committerzoulingli128 <zll_1208@126.com>2022-09-23 15:29:46 +0800
commit8673d020994a66bb98b456130f887a2ee822bd37 (patch)
tree8eff6e5bacca097573a2245807549020d2d36d71 /usecaseui-portal/src/app/core
parent7bdeb7cc89a8d60e4c3199f1922a6bf73a9d83c1 (diff)
Joint debugging interface of front and rear platform
Issue-ID: USECASEUI-730 Signed-off-by: zoulingli128 <zll_1208@126.com> Change-Id: Ibffb8a81cae041d09a079034db6766c071202886
Diffstat (limited to 'usecaseui-portal/src/app/core')
-rw-r--r--usecaseui-portal/src/app/core/services/intentManagement.service.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/usecaseui-portal/src/app/core/services/intentManagement.service.ts b/usecaseui-portal/src/app/core/services/intentManagement.service.ts
index eb9ad2b3..12fce9d4 100644
--- a/usecaseui-portal/src/app/core/services/intentManagement.service.ts
+++ b/usecaseui-portal/src/app/core/services/intentManagement.service.ts
@@ -26,7 +26,8 @@ export class IntentManagementService {
url = {
createIntentManagement: this.baseUrl + "/api/usecaseui-intent-analysis/v1/intents",
getIntentManagement: this.baseUrl + "/api/usecaseui-intent-analysis/v1/intents",
- deleteIntentManagement: this.baseUrl + "/api/usecaseui-intent-analysis/v1/intents",
+ deleteIntentManagement: this.baseUrl + "/api/usecaseui-intent-analysis/v1/intents/",
+ updateIntentManagementData: this.baseUrl + "/api/usecaseui-intent-analysis/v1/intents/"
};
// intentManagement
@@ -37,7 +38,9 @@ export class IntentManagementService {
return this.http.post<any>(this.url["createIntentManagement"], requestBody);
}
deleteIntentManagementData(intentId) {
- let params = new HttpParams({ fromObject: { "intentId": intentId } });
- return this.http.delete<any>(this.url.deleteIntentManagement, { params });
-}
+ return this.http.delete<any>(this.url.deleteIntentManagement + intentId);
+ }
+ updateIntentManagementData(id, requestBody) {//更新接口未完成
+ return this.http.put<any>(this.url.updateIntentManagementData + id, requestBody);
+ }
}