xuefei
2023-08-08 6c764f473b1e0e9dd2fb13034fe0d7295ab3724e
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
package cn.exrick.xboot.core.service;
 
 
import cn.exrick.xboot.core.base.XbootBaseService;
import cn.exrick.xboot.core.entity.User;
import cn.exrick.xboot.core.entity.UserRole;
 
import java.util.List;
 
/**
 * 用户角色接口
 * @author Exrickx
 */
public interface UserRoleService extends XbootBaseService<UserRole, String> {
 
    /**
     * 通过roleId查找
     * @param roleId
     * @return
     */
    List<UserRole> findByRoleId(String roleId);
 
    /**
     * 通过roleId查找用户
     * @param roleId
     * @return
     */
    List<User> findUserByRoleId(String roleId);
 
    /**
     * 删除用户角色
     * @param userId
     */
    void deleteByUserId(String userId);
}