add pos interface
Showing
2 changed files
with
23 additions
and
0 deletions
| ... | @@ -440,6 +440,17 @@ se_cms_args = { | ... | @@ -440,6 +440,17 @@ se_cms_args = { |
| 440 | 'content': fields.Nested(se_cms_content, required=True) | 440 | 'content': fields.Nested(se_cms_content, required=True) |
| 441 | } | 441 | } |
| 442 | 442 | ||
| 443 | se_contract_content = { | ||
| 444 | 'uniqSeq': fields.Str(required=True, validate=validate.Length(max=128)), | ||
| 445 | 'applicationId': fields.Str(required=True, validate=validate.Length(max=64)), | ||
| 446 | 'applicationEntity': fields.Str(required=True, validate=validate.OneOf(consts.ENTITY)), | ||
| 447 | "applicationVersion": fields.Int(required=True), | ||
| 448 | } | ||
| 449 | |||
| 450 | se_contract_args = { | ||
| 451 | 'content': fields.Nested(se_contract_content, required=True) | ||
| 452 | } | ||
| 453 | |||
| 443 | result_item_args = { | 454 | result_item_args = { |
| 444 | consts.HEAD_LIST[0]: fields.Str(required=True), | 455 | consts.HEAD_LIST[0]: fields.Str(required=True), |
| 445 | consts.HEAD_LIST[1]: fields.Str(required=True), | 456 | consts.HEAD_LIST[1]: fields.Str(required=True), |
| ... | @@ -1129,3 +1140,14 @@ class SECMSView(GenericView): | ... | @@ -1129,3 +1140,14 @@ class SECMSView(GenericView): |
| 1129 | schema: | 1140 | schema: |
| 1130 | $ref: '#/definitions/ApiResponse' | 1141 | $ref: '#/definitions/ApiResponse' |
| 1131 | ''' | 1142 | ''' |
| 1143 | |||
| 1144 | |||
| 1145 | class SEContractView(GenericView): | ||
| 1146 | permission_classes = [IsAuthenticated] | ||
| 1147 | authentication_classes = [OAuth2AuthenticationWithUser] | ||
| 1148 | |||
| 1149 | # pos上传e-contract信息接口 SE | ||
| 1150 | @use_args(se_contract_args, location='data') | ||
| 1151 | def post(self, request, args): | ||
| 1152 | self.running_log.info('e-contract in') | ||
| 1153 | return response.ok() | ... | ... |
-
Please register or sign in to post a comment