You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
987 B
Java
45 lines
987 B
Java
package com.glxp.api.dao.auth;
|
|
|
|
import com.glxp.api.entity.auth.SysRole;
|
|
import com.glxp.api.req.auth.FilterRoleRequest;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
|
|
@Mapper
|
|
public interface SysRoleMapper {
|
|
int insert(SysRole sysRole);
|
|
|
|
int updateById(SysRole sysRole);
|
|
|
|
SysRole selectById(Long id);
|
|
|
|
int deleteBatchIds(@Param("ids") List<Long> ids);
|
|
|
|
/**
|
|
* 根据条件分页查询角色数据
|
|
*
|
|
* @return 角色数据集合信息
|
|
*/
|
|
List<SysRole> selectRoleList(FilterRoleRequest filterRoleRequest);
|
|
|
|
/**
|
|
* 根据用户ID查询角色
|
|
*
|
|
* @param userId 用户ID
|
|
* @return 角色列表
|
|
*/
|
|
List<SysRole> selectRolePermissionByUserId(Long userId);
|
|
|
|
|
|
/**
|
|
* 根据用户ID获取角色选择框列表
|
|
*
|
|
* @param userId 用户ID
|
|
* @return 选中角色ID列表
|
|
*/
|
|
List<Long> selectRoleListByUserId(Long userId);
|
|
|
|
}
|