package com.ruoyi.hezhi.domain.dto;

import lombok.Data;

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

/**
 * 用户登录dto
 * @author Wzp
 */
@Data
public class MemberUserLoginDTO implements Serializable {

    /** 小程序授权登录 */
    public interface MemberUserLogin{

    }

    /** 小程序授权注册 */
    public interface MemberUserRegister{

    }

    /** 登录code */
    @NotBlank(message = "登录code不能为空", groups = {MemberUserLogin.class, MemberUserRegister.class})
    private String loginCode;

    /** 手机号code */
    @NotBlank(message = "手机号code不能为空", groups = {MemberUserLogin.class,MemberUserRegister.class})
    private String phoneCode;

    /** 头像 */
//    @NotBlank(message = "头像不能为空", groups = {MemberUserRegister.class})
    private String avatarUrl;

    /** 昵称 */
//    @NotBlank(message = "昵称不能为空", groups = {MemberUserRegister.class})
    private String nickName;
}
