xuhy
2025-01-09 c16f3bf0b16707214c3ad8acadbe5b77d35d4ccf
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
package com.stylefeng.guns.core.common.constant.factory;
 
import com.stylefeng.guns.modular.system.model.Dict;
 
import java.util.List;
 
/**
 * 常量生产工厂的接口
 *
 * @author fengshuonan
 * @date 2017-06-14 21:12
 */
public interface IConstantFactory {
 
    /**
     * 根据用户id获取用户名称
     *
     * @author stylefeng
     * @Date 2017/5/9 23:41
     */
    String getUserNameById(Integer userId);
 
    /**
     * 根据用户id获取用户账号
     *
     * @author stylefeng
     * @date 2017年5月16日21:55:371
     */
    String getUserAccountById(Integer userId);
 
    /**
     * 通过角色ids获取角色名称
     */
    String getRoleName(String roleIds);
 
    /**
     * 通过角色id获取角色名称
     */
    String getSingleRoleName(Integer roleId);
 
    /**
     * 通过角色id获取角色英文名称
     */
    String getSingleRoleTip(Integer roleId);
 
    /**
     * 获取部门名称
     */
    String getDeptName(Integer deptId);
 
    /**
     * 获取菜单的名称们(多个)
     */
    String getMenuNames(String menuIds);
 
    /**
     * 获取菜单名称
     */
    String getMenuName(Long menuId);
 
    /**
     * 获取菜单名称通过编号
     */
    String getMenuNameByCode(String code);
 
    /**
     * 获取字典名称
     */
    String getDictName(Integer dictId);
 
    /**
     * 获取通知标题
     */
    String getNoticeTitle(Integer dictId);
 
    /**
     * 根据字典名称和字典中的值获取对应的名称
     */
    String getDictsByName(String name, Integer val);
 
    /**
     * 获取性别名称
     */
    String getSexName(Integer sex);
 
    /**
     * 获取用户登录状态
     */
    String getStatusName(Integer status);
 
    /**
     * 获取菜单状态
     */
    String getMenuStatusName(Integer status);
 
    /**
     * 查询字典
     */
    List<Dict> findInDict(Integer id);
 
    /**
     * 获取被缓存的对象(用户删除业务)
     */
    String getCacheObject(String para);
 
    /**
     * 获取子部门id
     */
    List<Integer> getSubDeptId(Integer deptid);
 
    /**
     * 获取所有父部门id
     */
    List<Integer> getParentDeptIds(Integer deptid);
 
}