package com.YuyeTech.HeartRate.VO;

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

import java.util.Date;

/**
 * 用户信息
 * 返回给前端的json字段格式
 * @author:slambb
 * @date:2019/12/21
 */
@Data
public class UserInfoVO {

//    private String userId;

    private String username;

    private String gender;

//    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @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;

    private Double waistline;//腰围

    @JsonProperty("sHeartRate")
    private Double sHeartRate;//静态心率

}
