package com.ruoyi.system.domain;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import lombok.Data;
|
|
import java.time.LocalDateTime;
|
|
/**
|
* 用户实名认证信息实体类
|
*/
|
@Data
|
public class RealNameAuth {
|
|
// 认证记录ID
|
@TableId(type = IdType.AUTO)
|
private Integer id;
|
|
// 用户ID
|
private String userId;
|
|
// 身份证头像面照片存储路径
|
private String portraitSideImg;
|
|
// 身份证国徽面照片存储路径
|
private String nationalEmblemSideImg;
|
|
// 手持身份证照片存储路径
|
private String handholdingImg;
|
|
// 认证状态
|
private AuthStatus authStatus;
|
|
// 提交时间
|
private LocalDateTime createdAt;
|
|
// 认证状态枚举
|
public enum AuthStatus {
|
PENDING("待审核"),
|
APPROVED("已通过"),
|
REJECTED("已拒绝");
|
|
private final String description;
|
|
AuthStatus(String description) {
|
this.description = description;
|
}
|
|
public String getDescription() {
|
return description;
|
}
|
}
|
|
}
|