package com.zbkj.common.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ActivityVo对象", description="活动管理表")
public class ActivityVo implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "活动管理ID")
    private Integer id;

    @ApiModelProperty(value = "分类id")
    private String cid;

    @ApiModelProperty(value = "活动标题")
    private String title;

    @ApiModelProperty(value = "活动图片")
    private String imageInput;

    @ApiModelProperty(value = "活动分享标题")
    private String shareTitle;

    @ApiModelProperty(value = "活动分享简介")
    private String shareSynopsis;

    @ApiModelProperty(value = "活动地址")
    private String activityAddr;

    @ApiModelProperty(value = "活动人数")
    private String activityNum;

    @ApiModelProperty(value = "活动费用")
    private String activityPrice;

    @ApiModelProperty(value = "标签")
    private String tags;

    @ApiModelProperty(value = "排序")
    private String sort;

    @ApiModelProperty(value = "是否隐藏 0不隐藏，1隐藏")
    private String hide;

    @ApiModelProperty(value = "活动时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date activityTime;

    @ApiModelProperty(value = "是否热门(小程序)", example = "false")
    @NotNull(message = "是否热门(小程序)不能为空")
    private Boolean isHot;

    @ApiModelProperty(value = "是否轮播图(小程序)" , example = "true")
    @NotNull(message = "是否轮播(小程序)不能为空")
    private Boolean isBanner;

    @ApiModelProperty(value = "活动内容")
    @NotBlank(message = "请填写活动内容")
    private String content;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

}
