@TableName(value="USER_INFO", name="\u7528\u6237\u8d26\u53f7") public class UserModel extends BaseStrikeDbModel
Modifier and Type | Field and Description |
---|---|
static String |
DEMO_USER
demo 演示账号、系统预设
|
static UserModel |
EMPTY |
static int |
SALT_LEN
盐值长度
|
static String |
SYSTEM_ADMIN
系统管理员
|
static String |
SYSTEM_OCCUPY_NAME
系统占用名
|
static int |
USER_NAME_MIN_LEN
用户名限制
|
Modifier and Type | Method and Description |
---|---|
UserModel |
errorLock()
登录失败,重新计算锁定时间
|
boolean |
isDemoUser()
demo 登录名默认为系统演示账号
|
boolean |
isRealDemoUser()
demo 登录名默认为系统演示账号
|
boolean |
isSuperSystemUser()
是否为超级管理员
|
boolean |
isSystemUser() |
long |
overLockTime()
剩余解锁时间
|
void |
setSystemUser(Integer systemUser) |
static UserModel |
unLock(String id)
解锁
|
toString
toJson
public static final String SYSTEM_ADMIN
public static final String DEMO_USER
public static final UserModel EMPTY
public static final String SYSTEM_OCCUPY_NAME
public static final int USER_NAME_MIN_LEN
public static int SALT_LEN
public UserModel(String id)
public void setSystemUser(Integer systemUser)
public long overLockTime()
public UserModel errorLock()
public boolean isSystemUser()
public boolean isSuperSystemUser()
public boolean isDemoUser()
public boolean isRealDemoUser()
Copyright © 2017–2022. All rights reserved.