| | |
| | | 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; |
| | |
| | | * 分页查询 |
| | | * |
| | | * @param uname 用戶名 |
| | | * @param limit 记录表 |
| | | * @param limit 记录数 |
| | | * @param offset 偏移量 |
| | | * @return 列表 |
| | | */ |
| | |
| | | public Integer selectForIsAdmin(Integer id); |
| | | |
| | | /** |
| | | * 查询管理员用户 |
| | | * |
| | | * @param type 管理员类别 |
| | | * @return |
| | | */ |
| | | 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 |