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

Commit 7e8fc669 authored by 张国柄's avatar 张国柄

~valid.param;

parent b787455b
...@@ -7,18 +7,23 @@ import lombok.Data; ...@@ -7,18 +7,23 @@ import lombok.Data;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import javax.validation.constraints.Pattern; import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
@ApiModel(value = "GoblinStoreMgtCompleteParam", description = "店铺认证:认证资料入参") @ApiModel(value = "GoblinStoreMgtCompleteParam", description = "店铺认证:认证资料入参")
@Data @Data
public class GoblinStoreMgtCompleteParam implements java.io.Serializable { public class GoblinStoreMgtCompleteParam implements java.io.Serializable {
private static final long serialVersionUID = -5612313562282544613L; private static final long serialVersionUID = -5612313562282544613L;
@ApiModelProperty(position = 11, value = "店铺名称[128]", example = "店铺名称...") @ApiModelProperty(position = 11, value = "店铺名称[128]", example = "店铺名称...")
@Size(max = 128, message = "店铺名称过长")
private String storeName; private String storeName;
@ApiModelProperty(position = 12, value = "店铺LOGO[256]", example = "https://img.zhengzai.tv/files/2020/08/31/5f4c75095e9bc.png") @ApiModelProperty(position = 12, value = "店铺LOGO[256]", example = "https://img.zhengzai.tv/files/2020/08/31/5f4c75095e9bc.png")
@Size(max = 256, message = "店铺LOGOURL过长")
private String logoPic; private String logoPic;
@ApiModelProperty(position = 13, value = "店铺背景图[256]", example = "http://pic.zhengzai.tv/202201/CC/BF/1641361220_C8648990308E1C77247CCA0A37B68F07.jpg") @ApiModelProperty(position = 13, value = "店铺背景图[256]", example = "http://pic.zhengzai.tv/202201/CC/BF/1641361220_C8648990308E1C77247CCA0A37B68F07.jpg")
@Size(max = 256, message = "店铺背景图URL过长")
private String backgroundPic; private String backgroundPic;
@ApiModelProperty(position = 14, value = "店铺介绍[500]", example = "店铺介绍......") @ApiModelProperty(position = 14, value = "店铺介绍[1000]", example = "店铺介绍......")
@Size(max = 2000, message = "店铺介绍内容过长")
private String introduce; private String introduce;
@ApiModelProperty(position = 15, value = "店铺类型[1-普通店铺|2-加盟|3-连锁|5-直营]", allowableValues = "1,2,3,5", example = "1") @ApiModelProperty(position = 15, value = "店铺类型[1-普通店铺|2-加盟|3-连锁|5-直营]", allowableValues = "1,2,3,5", example = "1")
@Pattern(regexp = "\\b(1|2|3|5)\\b", message = "店铺类型参数无效") @Pattern(regexp = "\\b(1|2|3|5)\\b", 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