3a9682d0 by 冯轩

Merge branch 'feature/CHINARPA-5131-5234' into feature/uat-tmp

2 parents 56fac368 e570a364
......@@ -102,6 +102,18 @@ employee_args = {
'business_type': fields.Str(required=True, validate=validate.Length(max=64)),
}
q_gb_file_args = {
'file_path': fields.Str(required=True, validate=validate.Length(max=255)),
'business_type': fields.Str(required=True, validate=validate.Length(max=64)),
}
d_gb_file_args = {
'object_id': fields.Str(required=True, validate=validate.Length(max=64)),
'save_path': fields.Str(required=True, validate=validate.Length(max=255)),
'business_type': fields.Str(required=True, validate=validate.Length(max=64)),
}
go_args = {
'image': fields.Raw(required=True),
}
......@@ -2074,7 +2086,7 @@ class SearchGBHistoryFileView(GenericView):
permission_classes = [IsAuthenticated]
authentication_classes = [OAuth2AuthenticationWithUser]
@use_args(employee_args, location='data')
@use_args(q_gb_file_args, location='data')
def post(self, request, args):
file_path = args.get('file_path')
......@@ -2112,7 +2124,7 @@ class DownloadGBHistoryFileView(GenericView):
permission_classes = [IsAuthenticated]
authentication_classes = [OAuth2AuthenticationWithUser]
@use_args(employee_args, location='data')
@use_args(d_gb_file_args, location='data')
def post(self, request, args):
business_type = args.get('business_type')
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!