package com.YuyeTech.HeartRate.dto;

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

import java.util.Date;

/**
 * @author:slambb
 * @date:2020/1/10
 */
@Data
public class FriendInfoDTO {
    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;

    private Boolean isFriend;

    //关注的信息列表对应的一个id
    private String friendId;


    public FriendInfoDTO(String username,
                   String gender,
                   String signature,
                   String avatarUrl,
                   String cityCode,
                   Double height,
                   Double weight,
                   Date birthday,
                   Boolean bFriend,
                   String friendId) {
        this.username = username;
        this.gender = gender;
        this.signature = signature;
        this.avatarUrl = avatarUrl;
        this.cityCode = cityCode;
        this.height = height;
        this.weight = weight;
        this.birthday = birthday;
        this.isFriend = bFriend;
        this.friendId = friendId;
    }
}
