4d7a74a4 by 周伟奇

fix comment

1 parent 74d5891b
...@@ -58,6 +58,10 @@ individual_args = { ...@@ -58,6 +58,10 @@ individual_args = {
58 'selfEmployedSubType': fields.Str(required=False, validate=validate.OneOf(consts.SUB_TYPE)), 58 'selfEmployedSubType': fields.Str(required=False, validate=validate.OneOf(consts.SUB_TYPE)),
59 } 59 }
60 60
61 comment_args = {
62 'comment': fields.Str(required=True, validate=validate.Length(max=1024)),
63 }
64
61 compare_content = { 65 compare_content = {
62 'uniqSeq': fields.Str(required=True, validate=validate.Length(max=128)), 66 'uniqSeq': fields.Str(required=True, validate=validate.Length(max=128)),
63 'applicationId': fields.Str(required=True, validate=validate.Length(max=64)), 67 'applicationId': fields.Str(required=True, validate=validate.Length(max=64)),
...@@ -66,7 +70,7 @@ compare_content = { ...@@ -66,7 +70,7 @@ compare_content = {
66 "applicationVersion": fields.Int(required=True), 70 "applicationVersion": fields.Int(required=True),
67 'vehicleStatus': fields.Str(required=True, validate=validate.OneOf(consts.VEHICLE_STATUS)), 71 'vehicleStatus': fields.Str(required=True, validate=validate.OneOf(consts.VEHICLE_STATUS)),
68 72
69 'comments': fields.List(fields.Str(required=False), required=True), 73 'comments': fields.List(comment_args, required=True),
70 74
71 'individualCusInfo': fields.List(fields.Nested(individual_args), 75 'individualCusInfo': fields.List(fields.Nested(individual_args),
72 required=True, validate=validate.Length(min=1, max=4)), 76 required=True, validate=validate.Length(min=1, max=4)),
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!