yangys
2024-10-30 25db770e621f1259b8d5b7fd514207f7481c2d0f
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
package com.qianwen.smartman.modules.system.service;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
import javax.validation.constraints.NotEmpty;
import com.qianwen.smartman.modules.system.entity.Role;
import com.qianwen.smartman.modules.system.vo.RoleVO;
 
public interface IRoleService extends IService<Role> {
    IPage<RoleVO> selectRolePage(IPage<RoleVO> page, RoleVO role);
 
    List<RoleVO> tree(String tenantId);
 
    boolean grant(@NotEmpty List<Long> roleIds, List<Long> menuIds, List<Long> dataScopeIds, List<Long> apiScopeIds);
 
    String getRoleIds(String tenantId, String roleNames);
 
    List<String> getRoleNames(String roleIds);
 
    List<String> getRoleAliases(String roleIds);
 
    Role submit(Role role);
 
    List<RoleVO> search(String roleName, Long parentId);
}