提交 | 用户 | 时间
|
1ac2bc
|
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 UserDict extends AbstractDictMap { |
|
27 |
|
|
28 |
@Override |
|
29 |
public void init() { |
|
30 |
put("userId", "账号"); |
|
31 |
put("avatar", "头像"); |
|
32 |
put("account", "账号"); |
|
33 |
put("name", "名字"); |
|
34 |
put("birthday", "生日"); |
|
35 |
put("sex", "性别"); |
|
36 |
put("email", "电子邮件"); |
|
37 |
put("phone", "电话"); |
|
38 |
put("roleId", "角色名称"); |
|
39 |
put("deptId", "部门名称"); |
|
40 |
put("roleIds", "角色名称集合"); |
|
41 |
} |
|
42 |
|
|
43 |
@Override |
|
44 |
protected void initBeWrapped() { |
|
45 |
putFieldWrapperMethodName("sex", "getSexName"); |
|
46 |
putFieldWrapperMethodName("deptId", "getDeptName"); |
|
47 |
putFieldWrapperMethodName("roleId", "getSingleRoleName"); |
|
48 |
putFieldWrapperMethodName("userId", "getUserAccountById"); |
|
49 |
putFieldWrapperMethodName("roleIds", "getRoleName"); |
|
50 |
} |
|
51 |
} |