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
package cn.exrick.xboot.core.service;
 
 
import cn.exrick.xboot.core.base.XbootBaseService;
import cn.exrick.xboot.core.entity.Role;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
 
import java.util.List;
 
/**
 * 角色接口
 * @author Exrickx
 */
public interface RoleService extends XbootBaseService<Role, String> {
 
    /**
     * 获取默认角色
     * @param defaultRole
     * @return
     */
    List<Role> findByDefaultRole(Boolean defaultRole);
 
    /**
     * 分页获取
     * @param key
     * @param pageable
     * @return
     */
    Page<Role> findByCondition(String key, Pageable pageable);
}