@Service public class UserService extends BaseDbService<UserModel>
key, tableName, tClass
Constructor and Description |
---|
UserService() |
Modifier and Type | Method and Description |
---|---|
void |
bindMfa(String useId,
String mfa)
绑定 两步验证 mfa
|
boolean |
canUse()
是否需要初始化
|
UserModel |
checkUser(String userMd5)
验证用户md5
|
String |
closeSuperUserMfa()
关闭超级管理账号 mfa
|
protected void |
fillSelectResult(UserModel data)
查询结果 填充
|
String |
generateSalt()
生成 随机盐值
|
UserLoginDto |
getUserJwtId(UserModel userModel)
查询用户 jwt id
|
boolean |
hasBindMfa(String useId)
判断是否绑定 两步验证 mfa
|
boolean |
hasDemoUser()
是否包含 demo 账号
|
String |
restSuperUserPwd()
重置超级管理账号密码
|
UserModel |
simpleLogin(String name,
String pwd)
用户登录
|
long |
systemUserCount()
当前系统中的系统管理员的数量
|
void |
updatePwd(String id,
String newPwd)
修改密码
|
boolean |
verifyMfaCode(String userId,
String code)
判断验证码是否正确
|
autoClear, autoLoopClear, clearTimeColumns, count, count, covetTableName, defaultOrders, executeClearImpl, fillInsert, getData, getLastTimeValue, insert, insert, insertNotFill, list, listById, listById, listPage, listPage, listPage, parsePage, update, updateById, updateById, upsert
count, count, dataBeanToEntity, del, delByKey, delByKey, entityToBean, entityToBean, entityToBeanList, execute, exists, exists, findByCondition, getByKey, getByKey, getByKey, getKey, getTableName, insert, listByBean, listByEntity, listPageOnlyResult, query, query, queryByBean, queryList, queryList, queryList, update, warpException
public boolean canUse()
protected void fillSelectResult(UserModel data)
BaseDbCommonService
fillSelectResult
in class BaseDbCommonService<UserModel>
data
- 数据public String generateSalt()
public UserModel checkUser(String userMd5)
userMd5
- 用户md5public UserLoginDto getUserJwtId(UserModel userModel)
userModel
- 用户public long systemUserCount()
public UserModel simpleLogin(String name, String pwd)
name
- 用户名pwd
- 密码public String restSuperUserPwd()
public String closeSuperUserMfa()
public boolean hasDemoUser()
public boolean hasBindMfa(String useId)
useId
- 用户IDpublic void bindMfa(String useId, String mfa)
useId
- 用户IDmfa
- mfa keyCopyright © 2017–2022. All rights reserved.