xiejun
2024-11-01 80b6cbfc9c861469146318d0b3dd5f8b8b525b8a
Source/BladeX-Tool/blade-core-tool/src/main/java/org/springblade/core/tool/constant/BladeConstant.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,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 = "签名认证失败";
}