doc: 添加NotokOption注释

This commit is contained in:
caoqianming 2024-07-23 08:39:36 +08:00
parent 0ab6e0bc72
commit da8e381b3f
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,11 @@ class NotOkOptionView(APIView):
perms_map = {'get': '*'}
def get(self, request):
"""
获取不合格项
获取不合格项
"""
res1 = [{'value': i.value, 'label': i.label} for i in NotOkOption]
res2 = {i.value: i.label for i in NotOkOption}
return Response({"res_list": res1, "res_dict": res2})