package com.YuyeTech.TPlat.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 3D 接口返回的游戏dto
 * @author:slambb
 * @date:2020/12/28
 */
@Data
public class TDGameDTO {
    private String gameName;
    private String gameDescription;
    private String gameIcon;
    private String gamePicture;
    private String gameUrl;

    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date createTime;

    public TDGameDTO(String gameName,
                     String gameIcon,
                     String gameDescription,
                     String gamePicture,
                     String gameUrl,
                     Date createTime) {
        this.gameIcon = gameIcon;
        this.gameName = gameName;
        this.gameDescription = gameDescription;
        this.gamePicture = gamePicture;
        this.gameUrl = gameUrl;
        this.createTime = createTime;
    }
}
