refactor: 将共享常量类的构造器设置为私有
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
package com.onixbyte.helix.enumeration;
|
||||
|
||||
/**
|
||||
* Constants for external host configurations and endpoints.
|
||||
* <p>
|
||||
* This utility class provides centralised definitions for external service hosts, API endpoints,
|
||||
* and third-party integration points used throughout the Helix application. It serves as a single
|
||||
* source of truth for external service configurations, promoting maintainability and consistency.
|
||||
* <p>
|
||||
* The class is designed to hold static final constants representing:
|
||||
* <ul>
|
||||
* <li>External API base URLs</li>
|
||||
* <li>Third-party service endpoints</li>
|
||||
* <li>Integration service hosts</li>
|
||||
* <li>External resource locations</li>
|
||||
* </ul>
|
||||
* <p>
|
||||
* This class cannot be instantiated as it serves purely as a constant container.
|
||||
*
|
||||
* @author zihluwang
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public final class ExternalHost {
|
||||
|
||||
|
||||
}
|
||||
@@ -1,10 +1,13 @@
|
||||
package com.onixbyte.helix.shared;
|
||||
|
||||
public class AssetPrefix {
|
||||
public final class AssetPrefix {
|
||||
|
||||
public static final String UPLOADS = "uploads";
|
||||
|
||||
public static final String AVATARS = "avatars";
|
||||
|
||||
public static final String PROFILES = "profiles";
|
||||
|
||||
private AssetPrefix() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.onixbyte.helix.shared;
|
||||
|
||||
public class CacheName {
|
||||
public final class CacheName {
|
||||
|
||||
public static final String USER = "user";
|
||||
|
||||
@@ -12,7 +12,6 @@ public class CacheName {
|
||||
|
||||
public static final String CAPTCHA = "captcha";
|
||||
|
||||
public static final String CAPTCHA_SETTING = "captcha-setting";
|
||||
|
||||
public static final String AUTH_SETTING = "auth-setting";
|
||||
private CacheName() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.onixbyte.helix.shared;
|
||||
|
||||
/**
|
||||
* Constants for external host configurations and endpoints.
|
||||
*
|
||||
* @author zihluwang
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public final class ExternalHost {
|
||||
|
||||
private ExternalHost() {
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,11 @@
|
||||
package com.onixbyte.helix.shared;
|
||||
|
||||
public class SettingName {
|
||||
public final class SettingName {
|
||||
|
||||
public static final String CAPTCHA_ENABLED = "captcha-enabled";
|
||||
|
||||
public static final String REGISTER_ENABLED = "register-enabled";
|
||||
|
||||
private SettingName() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
package com.onixbyte.helix.shared;
|
||||
|
||||
public class TokenConstant {
|
||||
public final class TokenConstant {
|
||||
|
||||
public static final String TOKEN_HEADER_NAME = "Authorization";
|
||||
|
||||
public static final String TOKEN_PREFIX = "Bearer ";
|
||||
|
||||
public static final int TOKEN_PREFIX_LENGTH = TOKEN_PREFIX.length();
|
||||
|
||||
private TokenConstant() {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user