package com.zt.common.constant; import com.zt.common.constant.Constant.Cache; public enum CacheKey { // 用户 USER_ID("id:", "用户主键", Cache.USER), // 部门 DEPT_ID("id:", "部门主键", Cache.DEPT), DEPT_ALL("all", "所有部门", Cache.DEPT), DEPT_WITHDESCENDANT("withdescendant:", "部门所有祖先", Cache.DEPT), //首页菜单 MenuApply_ALL("all", "所有首页菜单", Cache.DEPT), // token TOKEN_TOKEN("token", "用户token", Cache.TOKEN), TOKEN_PERMISSIONS("permissions", "用户权限", Cache.TOKEN), // 系统 SYS_DICT_CODE("dict:code", "代码定义的字典", Cache.SYS), SYS_DICT("dict:db", "字典", Cache.SYS), SYS_CONFIG("config", "字典", Cache.SYS), SYS_INTERFACE("interface", "数据接口", Cache.SYS), // 数据权限 // NO("", "否", Cache.DATA_SCOPE), NO("", "否", Cache.DATA_SCOPE), // 工作流 ACTIVITI_BPM_ID("bpmDefinitionId:", "流程定义", Cache.ACTIVITI), ACTIVITI_DEF_ID("", "工作流模型id", Cache.ACTIVITI); private String key; private String name; private String cache; CacheKey(String key, String name, String cache) { this.key = key; this.name = name; this.cache = cache; } public String getKey() { return key; } public String getName() { return name; } public String getCache() { return cache; } }