jinlin
2025-03-01 86f02fee03614fef275c6e0c355d73318ca3025e
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
/**
 * Copyright (c) 2018 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有,侵权必究!
 */
 
package com.example.server.sysOss.model;
 
/**
 * 常量
 *
 * @author hehz
 */
public interface Constant {
 
    interface Cache {
        String USER = "userCache";
        String DEPT = "deptCache";
        String TOKEN = "tokenCache";
        String SYS = "sysCache";
        String ACTIVITI = "activitiCache";
        String MenuApply = "menuApplyCache";
    }
 
    interface Sys {
        Long PLATFORM_TENANT_ID = 0L; // 平台用户的租户id
        Long MENU_ROOT = 0L; // 菜单根节点标识
        Long DEPT_ROOT = 0L; // 部门根节点标识
        Long DICT_ROOT = 0L; // 数据字典根节点标识
 
        String TOKEN_HEADER = "token";// token header
    }
 
    interface Permissions {
        String SUPER_ADMIN = "sys:super:admin";
    }
 
    interface TableColumn {
        String TENANT_ID = "tenant_id";
        String IS_DELETE = "is_delete";
        String SORT = "sort";
    }
 
    interface Field {
        String USER = "userId";
        String TENANT = "tenantId";
        String COMPANY = "companyId";
        String DEPT = "deptId";
        String IS_DELETE = "isDelete";
    }
 
    interface Bool {
        int YES = 1;// 是
        int NO = 0;// 否
    }
 
    interface DeptType {// 部门类型,这里只管理公司,部门类型通过字典配置
        int COMPANY = 1;// 公司
    }
 
    interface RoleType {
        int NORMAL = 0;// 普通角色
        int TENANT = 1;// 租户角色
    }
 
    // 查询字段
    interface Q {
        String SQL_FILTER = "sqlFilter";// 数据权限过滤
        String PAGE = "page"; // 当前页码
        String LIMIT = "limit"; // 每页条数
        String ORDER_FIELD = "orderField"; // 排序字段
        String ORDER = "order"; // 排序方式
    }
 
    // 查询字段名称
    interface QV {
        String PAGE = "页码,1开始";
        String LIMIT = "每页条数";
        String ORDER_FIELD = "排序字段";
        String ORDER = "排序方式";
    }
 
    // 查询字段数据类型
    interface QT {
        String STRING = "String";
        String INT = "int";
        String LONG = "Long";
        String DOUBLE = "double";
        String Boolean = "Boolean";
    }
 
    interface ParamKey {// 参数key
        String INIT_PASSWORD_KEY = "INIT_PASSWORD_KEY";// 初始化密码
        String IS_LOGIN_NEED_CAPTURE = "IS_LOGIN_NEED_CAPTURE";// 是否需要登录
    }
 
}