package com.ruoyi.weixin.domain;

import com.ruoyi.common.core.validate.RegGroup;
import com.ruoyi.common.filepathsplicing.FilePathValue;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 微信用户
 */
@Data
public class WxUserDto implements Serializable {

    @NotBlank(message = "手机号不能为空", groups = {RegGroup.class})
    private String mobile;

    @NotBlank(message = "code不能为空")
    private String code;

    private String sessionKey;

    private String rawData;

    private String signature;

    private String encryptedData;

    private String iv;

    @NotBlank(message = "openId不能为空", groups = {RegGroup.class})
    private String openId;

    //微信用户信息
    /**
     * 昵称
     */
    private String nickname;

    /**
     * 头像
     */
    @FilePathValue
    private String headPhoto;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 性别
     * 0：未知、
     * 1：男、
     * 2：女
     */
    private Integer gender;

    /**
     * 真实姓名
     */
    private String realName;

    /**
     * 生日
     */
    private String birthday;

    /**
     * 业务id
     */
    private String businessId;

}
