2025-04-27 16:49:30 +08:00
|
|
|
package com.jdc.jdcproject.entity;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
2025-04-28 00:04:18 +08:00
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
2025-04-27 16:49:30 +08:00
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
2025-04-28 00:04:18 +08:00
|
|
|
import lombok.Data;
|
2025-04-27 16:49:30 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* <p>
|
|
|
|
*
|
|
|
|
* </p>
|
|
|
|
*
|
|
|
|
* @author haoyanlu
|
|
|
|
* @since 2025-04-26
|
|
|
|
*/
|
|
|
|
@Schema(name = "Users", description = "")
|
2025-04-28 00:04:18 +08:00
|
|
|
@Data
|
2025-04-27 16:49:30 +08:00
|
|
|
public class Users implements Serializable {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
@Schema(description = "用户id")
|
|
|
|
private String id;
|
|
|
|
|
|
|
|
@Schema(description = "用户名")
|
|
|
|
private String username;
|
|
|
|
|
|
|
|
@Schema(description = "密码")
|
|
|
|
private String password;
|
|
|
|
|
|
|
|
@Schema(description = "头像")
|
|
|
|
private String salt;
|
|
|
|
|
|
|
|
@Schema(description = "手机号")
|
|
|
|
private String tel;
|
|
|
|
|
2025-04-28 00:04:18 +08:00
|
|
|
@Schema(description = "微信登陆openid")
|
|
|
|
private String openid;
|
2025-04-27 16:49:30 +08:00
|
|
|
|
2025-04-28 00:04:18 +08:00
|
|
|
@Schema(description = "记录用户登录错误次数")
|
|
|
|
private Integer errlogincount = 0;
|
2025-04-27 16:49:30 +08:00
|
|
|
|
2025-04-28 00:04:18 +08:00
|
|
|
@Schema(description = "记录锁定的时间至何时")
|
|
|
|
private LocalDateTime lockdatetime;
|
2025-04-27 16:49:30 +08:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
return "Users{" +
|
|
|
|
"id = " + id +
|
|
|
|
", username = " + username +
|
|
|
|
", password = " + password +
|
|
|
|
", salt = " + salt +
|
|
|
|
", tel = " + tel +
|
|
|
|
"}";
|
|
|
|
}
|
|
|
|
}
|