/** * Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng) *

* 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 *

* http://www.apache.org/licenses/LICENSE-2.0 *

* 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 findInDict(Long id); /** * 获取被缓存的对象(用户删除业务) */ String getCacheObject(String para); /** * 获取子部门id */ List getSubDeptId(Long deptId); /** * 获取所有父部门id */ List getParentDeptIds(Long deptId); /** * 获取用户的职位名称 */ String getPositionName(Long userId); /** * 获取用户的职位ids */ String getPositionIds(Long userId); }