doc: 添加NotokOption注释
This commit is contained in:
parent
0ab6e0bc72
commit
da8e381b3f
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue