forked from kidgrow-microservices-platform

zhaoxiaohao
2020-07-17 5f69a549add739b190f46ba7d035e2fe31390e01
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.kidgrow.usercenter.service;
 
import com.kidgrow.common.model.SysRole;
import com.kidgrow.common.service.ISuperService;
import com.kidgrow.usercenter.model.SysRoleUser;
 
import java.util.List;
 
/**
 * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
 *
 * @Description: <br>
 * @Project: <br>
 * @CreateDate: Created in 2020/2/13 16:33 <br>
 * @Author: <a href="4345453@kidgrow.com">liuke</a>
 */
public interface ISysRoleUserService extends ISuperService<SysRoleUser> {
    int deleteUserRole(Long userId, Long roleId);
 
    int saveUserRoles(Long userId, Long roleId);
 
    /**
     * 根据用户id获取角色
     *
     * @param userId
     * @return
     */
    List<SysRole> findRolesByUserId(Long userId);
 
    /**
     * 根据用户ids 获取
     *
     * @param userIds
     * @return
     */
    List<SysRole> findRolesByUserIds(List<Long> userIds);
}