package com.YuyeTech.TPlat.dto;

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

import java.util.Date;

/**
 * @author:slambb
 * @date:2019/12/5
 */
@Data
public class UserDTO {
    private String username;

    private String gender;

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

    private String signature;

    private String avatarUrl;

    private String cityCode;

    private Double height;

    private Double weight;


    public UserDTO(String username,
                   String gender,
                   String signature,
                   String avatarUrl,
                   String cityCode,
                   Double height,
                   Double weight,
                   Date birthday) {
        this.username = username;
        this.gender = gender;
        this.signature = signature;
        this.avatarUrl = avatarUrl;
        this.cityCode = cityCode;
        this.height = height;
        this.weight = weight;
        this.birthday = birthday;
    }
}
