package com.panzhihua.common.model.dtos.advertisement;
|
|
import java.util.Date;
|
|
import javax.validation.constraints.Min;
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotNull;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.panzhihua.common.validated.AddGroup;
|
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
/**
|
* @program: springcloud_k8s_panzhihuazhihuishequ
|
* @description: 广告新增
|
* @author: huang.hongfa weixin hhf9596 qq 959656820
|
* @create: 2021-01-04 09:43
|
**/
|
@Data
|
@ApiModel(value = "广告新增")
|
public class ComOpsAdvDTO {
|
|
@ApiModelProperty("主键id")
|
private Long id;
|
|
@ApiModelProperty("广告位置id")
|
@NotNull(groups = {AddGroup.class}, message = "广告位置不能为空")
|
@Min(value = 1, groups = {AddGroup.class}, message = "广告位置不能为空")
|
private Long posId;
|
|
@ApiModelProperty("图片路径")
|
@NotBlank(groups = {AddGroup.class}, message = "图片路径不能为空")
|
private String photoPath;
|
|
@ApiModelProperty("链接类型:0~ 外部链接;1 ~ 内部链接")
|
@NotNull(groups = {AddGroup.class}, message = "链接类型不能为空")
|
@Min(value = 0, groups = {AddGroup.class}, message = "链接类型不能为空")
|
private Integer linkType;
|
|
@ApiModelProperty(value = "上架时间", example = "2021-01-04 00:00:00")
|
@NotNull(groups = {AddGroup.class}, message = "上架时间不能为空")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date onAt;
|
|
@ApiModelProperty(value = "下架时间", example = "2024-01-04 00:00:00")
|
@NotNull(groups = {AddGroup.class}, message = "下架时间不能为空")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date offAt;
|
|
@ApiModelProperty("跳转内容id")
|
private Long jumpId;
|
|
@ApiModelProperty("跳转url地址")
|
private String jumpUrl;
|
|
@ApiModelProperty(value = "create_at", hidden = true)
|
private Date createAt;
|
|
@ApiModelProperty(value = "update_at", hidden = true)
|
private Date updateAt;
|
}
|