记得上下班打卡 | git大法好,push需谨慎

Commit 958c62ba authored by 张国柄's avatar 张国柄

~API:店铺认证+参数校验;

parent cc665dbe
......@@ -8,6 +8,7 @@ import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
@ApiModel(value = "GoblinStoreMgtCertificationParam", description = "店铺认证:认证资料入参")
@Data
......@@ -23,8 +24,10 @@ public class GoblinStoreMgtCertificationParam implements java.io.Serializable {
@Pattern(regexp = "\\b(1)\\b", message = "证件类型无效")
private String personCertType;
@ApiModelProperty(position = 13, required = true, value = "证件姓名[32]", example = "张三")
@Size(max = 32, message = "证件姓名长度超限")
private String personName;
@ApiModelProperty(position = 14, required = true, value = "证件号码[32]", example = "111111111111111111")
@Size(max = 32, message = "证件号码位数超限")
private String personCertCode;
@ApiModelProperty(position = 15, required = true, value = "证件有效期[YYYY-MM-DD]", example = "2022-12-31")
@Pattern(regexp = LnsRegex.Valid.DATETIME_YMD, message = "证件有效期格式有误")
......@@ -56,8 +59,10 @@ public class GoblinStoreMgtCertificationParam implements java.io.Serializable {
private String busAddress;
@ApiModelProperty(position = 26, required = false, value = "商户名称[64]", example = "北京XXX服装贸易有限公司")
@Size(max = 64, message = "商户名称长度超限")
private String busName;
@ApiModelProperty(position = 27, required = false, value = "统一社会信用代码[64]", example = "90000000000000005")
@ApiModelProperty(position = 27, required = false, value = "统一社会信用代码[32]", example = "90000000000000005")
@Size(max = 32, message = "统一社会信用代码位数超限")
private String busCertCode;
@ApiModelProperty(position = 28, required = false, value = "营业执照有效期[YYYY-MM-DD]", example = "2022-12-31")
@Pattern(regexp = LnsRegex.Valid.DATETIME_YMD, message = "营业执照有效期格式有误")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment