懒羊羊
2023-08-30 71e81ed1d12e4d69f53c8ad9e066650ad4186293
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
/**
 * Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cn.stylefeng.guns.sys.core.constant.factory;
 
import cn.stylefeng.guns.sys.modular.system.entity.Dict;
import cn.stylefeng.guns.sys.modular.system.entity.Menu;
 
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(Long userId);
 
    /**
     * 根据用户id获取用户账号
     *
     * @author stylefeng
     * @date 2017年5月16日21:55:371
     */
    String getUserAccountById(Long userId);
 
    /**
     * 通过角色ids获取角色名称
     */
    String getRoleName(String roleIds);
 
    /**
     * 通过角色id获取角色名称
     */
    String getSingleRoleName(Long roleId);
 
    /**
     * 通过角色id获取角色英文名称
     */
    String getSingleRoleTip(Long roleId);
 
    /**
     * 获取部门名称
     */
    String getDeptName(Long deptId);
 
    /**
     * 获取菜单的名称们(多个)
     */
    String getMenuNames(String menuIds);
 
    /**
     * 获取菜单名称
     */
    String getMenuName(Long menuId);
 
    /**
     * 获取菜单通过编号
     */
    Menu getMenuByCode(String code);
 
    /**
     * 获取菜单名称通过编号
     */
    String getMenuNameByCode(String code);
 
    /**
     * 获取菜单名称通过编号
     */
    Long getMenuIdByCode(String code);
 
    /**
     * 获取字典名称
     */
    String getDictName(Long dictId);
 
    /**
     * 获取通知标题
     */
    String getNoticeTitle(Long dictId);
 
    /**
     * 根据字典名称和字典中的值获取对应的名称
     */
    String getDictsByName(String name, String code);
 
    /**
     * 获取字典名称
     */
    String getDictNameByCode(String dictCode);
 
    /**
     * 获取性别名称
     */
    String getSexName(String sexCode);
 
    /**
     * 获取用户登录状态
     */
    String getStatusName(String status);
 
    /**
     * 获取菜单状态
     */
    String getMenuStatusName(String status);
 
    /**
     * 查询字典
     */
    List<Dict> findInDict(Long id);
 
    /**
     * 获取被缓存的对象(用户删除业务)
     */
    String getCacheObject(String para);
 
    /**
     * 获取子部门id
     */
    List<Long> getSubDeptId(Long deptId);
 
    /**
     * 获取所有父部门id
     */
    List<Long> getParentDeptIds(Long deptId);
 
    /**
     * 获取用户的职位名称
     */
    String getPositionName(Long userId);
 
    /**
     * 获取用户的职位ids
     */
    String getPositionIds(Long userId);
 
}