提交 | 用户 | 时间
|
8286c6
|
1 |
/** |
懒 |
2 |
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng) |
|
3 |
* <p> |
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 |
* you may not use this file except in compliance with the License. |
|
6 |
* You may obtain a copy of the License at |
|
7 |
* <p> |
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0 |
|
9 |
* <p> |
|
10 |
* Unless required by applicable law or agreed to in writing, software |
|
11 |
* distributed under the License is distributed on an "AS IS" BASIS, |
|
12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 |
* See the License for the specific language governing permissions and |
|
14 |
* limitations under the License. |
|
15 |
*/ |
|
16 |
package cn.stylefeng.guns.sys.core.constant.dictmap; |
|
17 |
|
|
18 |
import cn.stylefeng.guns.base.dict.AbstractDictMap; |
|
19 |
|
|
20 |
/** |
|
21 |
* 角色的字典 |
|
22 |
* |
|
23 |
* @author fengshuonan |
|
24 |
* @date 2017-05-06 15:01 |
|
25 |
*/ |
|
26 |
public class RoleDict extends AbstractDictMap { |
|
27 |
|
|
28 |
@Override |
|
29 |
public void init() { |
|
30 |
put("roleId", "角色名称"); |
|
31 |
put("sort", "角色排序"); |
|
32 |
put("pid", "角色的父级"); |
|
33 |
put("name", "角色名称"); |
|
34 |
put("description", "备注"); |
|
35 |
put("ids", "资源名称"); |
|
36 |
} |
|
37 |
|
|
38 |
@Override |
|
39 |
protected void initBeWrapped() { |
|
40 |
putFieldWrapperMethodName("pid", "getSingleRoleName"); |
|
41 |
putFieldWrapperMethodName("deptId", "getDeptName"); |
|
42 |
putFieldWrapperMethodName("roleId", "getSingleRoleName"); |
|
43 |
putFieldWrapperMethodName("ids", "getMenuNames"); |
|
44 |
} |
|
45 |
} |