Merge "Fix the respose name of records"

This commit is contained in:
Zuul 2023-08-10 02:21:16 +00:00 committed by Gerrit Code Review
commit cb75ca6ee9
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"code": 0,
"msg": "OK",
"rules": [
"records": [
{
"id": "00b32723a3c240afab037593c8b11692",
"title": "\u6d4b\u8bd5\u89c4\u5219",

View File

@ -153,7 +153,7 @@ class AnomalyDetectController(wsgi.Controller):
record["create_time"] = r.create_time
records.append(record)
return {"code": 0, "msg": "OK", "rules": records}
return {"code": 0, "msg": "OK", "records": records}
@wsgi.wrap_check_policy
def delete_record(self, req, id):