package com.YuyeTech.TPlat.form;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 游戏信息表单
 *
 * @author:slambb
 * @date:2020/1/16
 */
@Data
public class GameInfoForm {

    private String gameId;

    @NotBlank(message = "游戏名不能为空")
    private String gameName;

    @NotBlank(message = "游戏描述不能为空")
    private String gameDescription;

    private Integer gameStatus;

    private Integer gameType;

    private String gameWebUrl;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date createTime;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date showTime;

    private Integer platform;

}
