package com.xcong.farmer.cms.modules.system.dto; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import javax.validation.constraints.NotNull; /** * @author wzy * @date 2022-08-19 **/ @Data @ApiModel(value = "AdAddDto") public class AdAddDto { @ApiModelProperty(value = "分组id,非必填") private String groupId; @NotNull(message = "参数错误") @ApiModelProperty(value = "名称") private String name; @NotNull(message = "参数错误") @ApiModelProperty(value = "类型 1-图片 2-多媒体 3-代码") private Integer type; @NotNull(message = "参数错误") @ApiModelProperty(value = "值,如果是多张图片,则逗号隔开") private String value; @ApiModelProperty(value = "备注") private String remark; }