补充状态参数

This commit is contained in:
chenzuoqing 2021-12-28 19:42:52 +08:00
parent 3ad65d90ca
commit 82448719ad
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ class InstanceParse:
self.request_parse = reqparse.RequestParser()
self.request_parse.add_argument("name", required=required, type=str, location='json')
self.request_parse.add_argument("class_name", required=False, type=str, location='json')
self.request_parse.add_argument("status", location='json', choices=Instance.STATUS.keys())
self.request_parse.add_argument("server", required=False, type=str, location='json')
self.request_parse.add_argument("dependents", required=False, type=list, location='json')