3a9682d0 by 冯轩

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

2 parents 56fac368 e570a364
...@@ -102,6 +102,18 @@ employee_args = { ...@@ -102,6 +102,18 @@ employee_args = {
102 'business_type': fields.Str(required=True, validate=validate.Length(max=64)), 102 'business_type': fields.Str(required=True, validate=validate.Length(max=64)),
103 } 103 }
104 104
105 q_gb_file_args = {
106 'file_path': fields.Str(required=True, validate=validate.Length(max=255)),
107 'business_type': fields.Str(required=True, validate=validate.Length(max=64)),
108 }
109
110 d_gb_file_args = {
111 'object_id': fields.Str(required=True, validate=validate.Length(max=64)),
112 'save_path': fields.Str(required=True, validate=validate.Length(max=255)),
113 'business_type': fields.Str(required=True, validate=validate.Length(max=64)),
114 }
115
116
105 go_args = { 117 go_args = {
106 'image': fields.Raw(required=True), 118 'image': fields.Raw(required=True),
107 } 119 }
...@@ -2074,7 +2086,7 @@ class SearchGBHistoryFileView(GenericView): ...@@ -2074,7 +2086,7 @@ class SearchGBHistoryFileView(GenericView):
2074 permission_classes = [IsAuthenticated] 2086 permission_classes = [IsAuthenticated]
2075 authentication_classes = [OAuth2AuthenticationWithUser] 2087 authentication_classes = [OAuth2AuthenticationWithUser]
2076 2088
2077 @use_args(employee_args, location='data') 2089 @use_args(q_gb_file_args, location='data')
2078 def post(self, request, args): 2090 def post(self, request, args):
2079 2091
2080 file_path = args.get('file_path') 2092 file_path = args.get('file_path')
...@@ -2112,7 +2124,7 @@ class DownloadGBHistoryFileView(GenericView): ...@@ -2112,7 +2124,7 @@ class DownloadGBHistoryFileView(GenericView):
2112 permission_classes = [IsAuthenticated] 2124 permission_classes = [IsAuthenticated]
2113 authentication_classes = [OAuth2AuthenticationWithUser] 2125 authentication_classes = [OAuth2AuthenticationWithUser]
2114 2126
2115 @use_args(employee_args, location='data') 2127 @use_args(d_gb_file_args, location='data')
2116 def post(self, request, args): 2128 def post(self, request, args):
2117 2129
2118 business_type = args.get('business_type') 2130 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!