class Constants {
  // ==================== 环境配置 ====================
  static const String baseUrl = 'http://localhost:8080';

  // ==================== 超时配置 ====================
  static const int connectTimeout = 30000;
  static const int receiveTimeout = 30000;
  static const int sendTimeout = 30000;

  // ==================== 业务状态码 ====================
  static const int successCode = 200;
  static const int tokenExpiredCode = 401;
  static const int forbiddenCode = 403;
  static const int notFoundCode = 404;
  static const int serverErrorCode = 500;

  // ==================== 重试配置 ====================
  static const int maxRetries = 3;
  static const int retryInterval = 1000;
  static const bool enableExponentialBackoff = true;

  // ==================== 缓存配置 ====================
  static const bool enableCache = false;
  static const int cacheDuration = 300;

  // ==================== Token 配置 ====================
  static const int tokenExpiryHours = 24;

  // ==================== 其他配置 ====================
  static const String defaultLang = 'zh-CN';
}
