package com.xingxi.api.data.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.util.StringUtils;

import java.util.ArrayList;
import java.util.List;

@Data
public class UserProfileDTO {
    private String userId;
    private String nickName;
    private String gender;
    private String avatarUrl;
    private String userType;
    private String phoneNumber;

    private String qrCodeUrl;

    @JsonProperty("isBindPhoneNumber")
    private boolean isBindPhoneNumber;

    private List<Object> subMchList = new ArrayList<>();

    public boolean isBindPhoneNumber() {
        return StringUtils.hasLength(this.phoneNumber);
    }
}
