lyh
3 天以前 3ce27b7faf8850d101a1511a685250fe562dca18
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
package com.lxzn.ucenter.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import com.lxzn.framework.domain.ucenter.UserRole;
 
import java.util.List;
 
public interface IUserRoleService extends IService<UserRole> {
    /**
     * 根据菜用户id删除用户角色权限
     * @param userId
     * @return
     */
    boolean deleteByUserId(String userId);
 
    /**
     * 查询唯一
     * @param userId
     * @param roleId
     * @return
     */
    UserRole getByUserIdAndRoleId(String userId, String roleId);
 
    /**
     * 移除一组数据
     * @param list
     * @return
     */
    boolean removeByCollection(List<UserRole> list);
 
    /**
     * 获取角色的关联数据
     * @param roleId
     * @return
     */
    List<UserRole> findByRoleId(String roleId);
}