xiejun
2024-11-01 80b6cbfc9c861469146318d0b3dd5f8b8b525b8a
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
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.core.tool.constant;
 
/**
 * 系统常量
 *
 * @author Chill
 */
public interface BladeConstant {
 
    /**
     * 编码
     */
    String UTF_8 = "UTF-8";
 
    /**
     * contentType
     */
    String CONTENT_TYPE_NAME = "Content-type";
 
    /**
     * JSON 资源
     */
    String CONTENT_TYPE = "application/json;charset=utf-8";
 
    /**
     * 上下文键值
     */
    String CONTEXT_KEY = "bladeContext";
 
    /**
     * mdc request id key
     */
    String MDC_REQUEST_ID_KEY = "requestId";
 
    /**
     * mdc account id key
     */
    String MDC_ACCOUNT_ID_KEY = "accountId";
 
    /**
     * mdc tenant id key
     */
    String MDC_TENANT_ID_KEY = "tenantId";
 
    /**
     * 角色前缀
     */
    String SECURITY_ROLE_PREFIX = "ROLE_";
 
    /**
     * 主键字段名
     */
    String DB_PRIMARY_KEY = "id";
 
    /**
     * 主键字段get方法
     */
    String DB_PRIMARY_KEY_METHOD = "getId";
 
    /**
     * 租户字段名
     */
    String DB_TENANT_KEY = "tenantId";
 
    /**
     * 租户字段get方法
     */
    String DB_TENANT_KEY_GET_METHOD = "getTenantId";
 
    /**
     * 租户字段set方法
     */
    String DB_TENANT_KEY_SET_METHOD = "setTenantId";
 
    /**
     * 业务状态[1:正常]
     */
    int DB_STATUS_NORMAL = 1;
 
 
    /**
     * 删除状态[0:正常,1:删除]
     */
    int DB_NOT_DELETED = 0;
    int DB_IS_DELETED = 1;
 
    /**
     * 用户锁定状态
     */
    int DB_ADMIN_NON_LOCKED = 0;
    int DB_ADMIN_LOCKED = 1;
 
    /**
     * 顶级父节点id
     */
    Long TOP_PARENT_ID = 0L;
 
    /**
     * 顶级父节点名称
     */
    String TOP_PARENT_NAME = "顶级";
 
    /**
     * 管理员对应的租户ID
     */
    String ADMIN_TENANT_ID = "000000";
 
    /**
     * 日志默认状态
     */
    String LOG_NORMAL_TYPE = "1";
 
    /**
     * 默认为空消息
     */
    String DEFAULT_NULL_MESSAGE = "暂无承载数据";
    /**
     * 默认成功消息
     */
    String DEFAULT_SUCCESS_MESSAGE = "操作成功";
    /**
     * 默认失败消息
     */
    String DEFAULT_FAILURE_MESSAGE = "操作失败";
    /**
     * 默认未授权消息
     */
    String DEFAULT_UNAUTHORIZED_MESSAGE = "签名认证失败";
 
}