jinlin
2024-02-23 1772fc5e211f9e9e0ab4cdc6c29b436aac178c2a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
 * Copyright (c) 2018 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有,侵权必究!
 */
 
package com.zt.modules.sys.dao;
 
import com.zt.common.dao.BaseDao;
import com.zt.core.sys.model.SysUser;
import com.zt.modules.sys.dto.RoleDto;
import com.zt.modules.sys.dto.UserDto;
import com.zt.modules.sys.model.SysRoleUser;
import org.apache.ibatis.annotations.Mapper;
 
import java.util.List;
 
/**
 * 角色用户关系
 *
 * @author hehz
 * @since 1.0.0
 */
@Mapper
public interface SysRoleUserDao extends BaseDao<SysRoleUser> {
 
    List<RoleDto> getUserRoles(Long userId);
    List<SysUser> getRoleUsers(Long roleId);
    List<SysRoleUser> getSingleRoleUsers(Long roleId,Long userId);
 
}