Helius
2021-06-16 5728be2af515b2200e782aa201ca5d4d67d9ea47
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 com.ibeetl.admin.core.util.beetl;
 
import org.beetl.core.Context;
import org.beetl.core.Function;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
import com.ibeetl.admin.core.rbac.tree.OrgItem;
import com.ibeetl.admin.core.service.CoreRoleService;
 
/**
 * 获取系统的所有角色列表
 * @author xiandafu
 *
 */
@Component
public class RoleFunction implements Function {
 
    @Autowired
    CoreRoleService  coreRoleService;
    
    
    public Object call(Object[] paras, Context ctx) {
        
        String type = null;
        if(paras.length!=0) {
            type = (String)paras[0];
        }
        return coreRoleService.getAllRoles(type);
        
    }
    
    
 
}