peng
7 天以前 75f9783d5a70a5f037e3b34dc0e479069e63c0e9
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
34
35
36
37
38
39
40
41
package cn.lili.modules.permission.service;
 
import cn.lili.modules.permission.entity.dos.UserRole;
import com.baomidou.mybatisplus.extension.service.IService;
 
import java.util.List;
 
/**
 * 管理员业务层
 *
 * @author Chopper
 * @since 2020/11/17 3:46 下午
 */
public interface UserRoleService extends IService<UserRole> {
 
    /**
     * 根据用户查看拥有的角色
     *
     * @param userId
     * @return
     */
    List<UserRole> listByUserId(String userId);
 
    /**
     * 根据用户查看拥有的角色
     *
     * @param userId
     * @return
     */
    List<String> listId(String userId);
 
    /**
     * 更新用户拥有的角色
     *
     * @param userId    角色
     * @param userRoles 角色权限
     */
    void updateUserRole(String userId, List<UserRole> userRoles);
 
 
}