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.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="GameVo", description="游戏表")
public class GameVo implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "游戏ID")
    private Long id;

    @ApiModelProperty(value = "分类id：754茶株游戏，747抽奖游戏")
    private String cid;

    @ApiModelProperty(value = "图片")
    private String image;

    @ApiModelProperty(value = "名称")
    private String gameName;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "状态（0：关闭，1：开启）")
    private Integer status;

    @ApiModelProperty(value = "是否隐藏（0：否，1：是）")
    private Integer hide;

    @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;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date createTime;

}
