@Mapper
public interface UserDao
| Modifier and Type | Method and Description |
|---|---|
UserEnt |
getUserEntityById(Long userId)
Id查询用户信息
|
UserEnt |
getUserEntityByOpenId(String openId)
根据OpenId查询用户信息
|
String |
getUserHeadPictureLocation(Long userId)
查询用户头像保存的相对位置
|
UserIdentityEnum |
getUserIdentity(Long userId)
查询用户权限信息
|
void |
insertBaseUser(String openId)
新增一个基础用户(用户信息仅包含openId)
|
List<UserEnt> |
listUserInfoInIdList(List<Long> userIdList)
查询ID名单中的所有用户信息
|
Integer |
update(UserEnt userEnt)
更新用户个人信息
|
void |
updateUserHeadPictureLocation(Long userId,
String newFileLocation)
更新用户头像保存位置信息
|
void |
updateUserIdentity(Long userId,
UserIdentityEnum identity)
更新用户的角色信息
|
Boolean |
userIsInBlackList(Long userId)
检查用户是否在黑名单中
|
UserEnt getUserEntityById(@Param(value="userId") Long userId)
userId - 用户IdUserIdentityEnum getUserIdentity(@Param(value="userId") Long userId)
userId - 用户IdUserEnt getUserEntityByOpenId(@Param(value="openId") String openId)
openId - 小程序登录OpenIdvoid insertBaseUser(@Param(value="openId")
String openId)
openId - 用户实体(实体属性,仅用到openId一个属性)Boolean userIsInBlackList(@Param(value="userId") Long userId)
userId - 用户Idvoid updateUserIdentity(@Param(value="userId")
Long userId,
@Param(value="identity")
UserIdentityEnum identity)
userId - 用户Ididentity - 用户新角色String getUserHeadPictureLocation(@Param(value="userId") Long userId)
userId - 用户idvoid updateUserHeadPictureLocation(@Param(value="userId")
Long userId,
@Param(value="fileLocation")
String newFileLocation)
userId - 用户IdnewFileLocation - 新文件保存路径Copyright © 2022. All rights reserved.