| | |
| | | package com.lf.server.mapper.sys; |
| | | |
| | | import com.lf.server.entity.sys.RoleEntity; |
| | | import com.lf.server.entity.sys.UserEntity; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | |
| | | public List<UserEntity> selectAdminUsers(Integer type); |
| | | |
| | | /** |
| | | * 根据用户ID查询角色 |
| | | * |
| | | * @param id 用户ID |
| | | * @return 角色集合 |
| | | */ |
| | | public List<RoleEntity> selectRoleByUserId(Integer id); |
| | | |
| | | /** |
| | | * 根据角色查询用户 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 用户集合 |
| | | */ |
| | | public List<UserEntity> selectUserByRoleId(Integer roleId); |
| | | |
| | | /** |
| | | * 插入一条 |
| | | * |
| | | * @param userEntity |