jinlin
2024-02-23 1772fc5e211f9e9e0ab4cdc6c29b436aac178c2a
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
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;
    }
}