package com.backendsys.modules.app.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Data
public class AppAuth {

    public static interface LoginWithPhone{}
    public static interface LoginWithWechat{}

    @NotEmpty(message = "手机号码不能为空", groups = { LoginWithPhone.class })
    private String phone;
    @NotEmpty(message = "密码不能为空", groups = { LoginWithPhone.class })
    private String password;
    private String captcha;

    @NotEmpty(message = "code 不能为空", groups = { LoginWithWechat.class })
    private String code;

}
