From a58d9376d7a810d02043ef426daaa933a7be618f Mon Sep 17 00:00:00 2001 From: TANGWY Date: Fri, 14 Jun 2024 14:04:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../config/service/https/notice.service.ts | 93 ++++++++++++------- 1 file changed, 57 insertions(+), 36 deletions(-) diff --git a/src/app/routes/config/service/https/notice.service.ts b/src/app/routes/config/service/https/notice.service.ts index 42510e7..734d889 100644 --- a/src/app/routes/config/service/https/notice.service.ts +++ b/src/app/routes/config/service/https/notice.service.ts @@ -213,6 +213,9 @@ export class NoticeService { // 400000 // ] // } + + // response + //{"message": "The whitelist is added", "code": 200, "data": {"id": 6}} const url = '/ditingEngine/diting/global/whitelist_add/'; return this.httpService.post(url,{}, params); } @@ -235,6 +238,13 @@ export class NoticeService { // "url": "http://baid.com" // }, // "type": 0 + // } + + //response: + // { + // "message": "谛听引擎-添加灰名单成功", + // "code": 200, + // "data": null // } const url = '/ditingEngine/diting/global/whitelist_add'; return this.httpService.post(url,{}, params); @@ -243,47 +253,51 @@ export class NoticeService { // 添加白名单灰名单默认类型 getDefaultRule(){ // { - // "white_list": { - // "ip": [ - // 400000, - // 400001 - // ], - // "account": [ - // 400000, - // 400001 - // ], - // "interface": [ - // 400000, - // 400001 - // ], - // "menu": [ - // 400000, - // 400001 - // ] - // }, - // "grey_list": { - // "ip": [ - // 400000, - // 400001 - // ], - // "account": [ - // 400000, - // 400001 - // ], - // "interface": [ - // 400000, - // 400001 - // ], - // "menu": [ - // 400000, - // 400001 - // ] + // "message": "success", + // "code": 200, + // "data": { + // "white_list": { + // "ip": [ + // 400000, + // 400001 + // ], + // "account": [ + // 400000, + // 400001 + // ], + // "interface": [ + // 400000, + // 400001 + // ], + // "menu": [ + // 400000, + // 400001 + // ] + // }, + // "grey_list": { + // "ip": [ + // 400000, + // 400001 + // ], + // "account": [ + // 400000, + // 400001 + // ], + // "interface": [ + // 400000, + // 400001 + // ], + // "menu": [ + // 400000, + // 400001 + // ] + // } // } // } const url = '/uebaMetricsAnalysis/ueba_metrics/get_default_rule/'; return this.httpService.get(url); } - + // 写审计日志 writeAuditlog(param){ // { @@ -293,6 +307,13 @@ export class NoticeService { // "adg":21 // } // } + + // response: + // { + // "message": "success", + // "code": 200, + // "data": "ok" + // } const url = '/uebaMetricsAnalysis/ueba_metrics/write_audit_log/'; return this.httpService.post(url,{},param); }