diff --git a/src/backend/NetAdmin.Infrastructure/Constant/Numbers.cs b/src/backend/NetAdmin.Infrastructure/Constant/Numbers.cs index 1272f901..56f1f153 100644 --- a/src/backend/NetAdmin.Infrastructure/Constant/Numbers.cs +++ b/src/backend/NetAdmin.Infrastructure/Constant/Numbers.cs @@ -16,19 +16,20 @@ public static class Numbers public const int HTTP_STATUS_BIZ_FAIL = 900; // Http状态码-业务异常 public const long ID_DIC_CATALOG_GEO_AREA = 379794295185413; // 唯一编号:字典目录-行政区划字典 - public const int MAX_LIMIT_BULK_REQ = 100; // 最大限制:批量请求数 - public const int MAX_LIMIT_EXPORT = 10000; // 最大限制:导出为CSV文件的条数 - public const int MAX_LIMIT_QUERY = 1000; // 最大限制:非分页查询条数 - public const int MAX_LIMIT_QUERY_PAGE_NO = 10000; // 最大限制:分页查询页码 - public const int MAX_LIMIT_QUERY_PAGE_SIZE = 100; // 最大限制:分页查询页容量 - public const int MAX_LIMIT_RETRY_CNT_REDIS_LOCK = 10; // 最大限制:Redis锁重试次数 - public const int REQUEST_LOG_BUFF_SIZE = 10; // 请求日志缓冲区大小 - public const int SCHEDULED_JOB_PARALLEL_NUM = 5; // 计划作业并发数 - public const int SECS_CACHE_CHART = 300; // 秒:缓存时间-仪表 - public const int SECS_CACHE_DEFAULT = 60; // 秒:缓存时间-默认 - public const int SECS_CACHE_DIC_CATALOG_CODE = 300; // 秒:缓存时间-字典配置-目录代码 - public const int SECS_REDIS_LOCK_EXPIRY = 60; // 秒:Redis锁过期时间 - public const int SECS_REDIS_LOCK_RETRY_DELAY = 1; // 秒:Redis锁重试间隔 - public const int SECS_TIMEOUT_HTTP_CLIENT = 15; // 秒:超时时间-默认HTTP客户端 - public const int SECS_TIMEOUT_JOB = 600; // 秒:超时时间-作业 + public const int MAX_LIMIT_BULK_REQ = 100; // 最大限制:批量请求数 + public const int MAX_LIMIT_EXPORT = 10000; // 最大限制:导出为CSV文件的条数 + public const int MAX_LIMIT_QUERY = 1000; // 最大限制:非分页查询条数 + public const int MAX_LIMIT_QUERY_PAGE_NO = 10000; // 最大限制:分页查询页码 + public const int MAX_LIMIT_QUERY_PAGE_SIZE = 100; // 最大限制:分页查询页容量 + public const int MAX_LIMIT_RETRY_CNT_REDIS_LOCK = 10; // 最大限制:Redis锁重试次数 + public const int REQUEST_LOG_BUFF_SIZE = 10; // 请求日志缓冲区大小 + public const int SCHEDULED_JOB_PARALLEL_NUM = 5; // 计划作业并发数 + public const int SECS_CACHE_CHART = 300; // 秒:缓存时间-仪表 + public const int SECS_CACHE_DEFAULT = 60; // 秒:缓存时间-默认 + public const int SECS_CACHE_DIC_CATALOG_CODE = 300; // 秒:缓存时间-字典配置-目录代码 + public const int SECS_CACHE_LOGIN_BY_USER_ID = 3600 * 24 * 30; // 秒:缓存时间-通过用户编号登录的用户信息 + public const int SECS_REDIS_LOCK_EXPIRY = 60; // 秒:Redis锁过期时间 + public const int SECS_REDIS_LOCK_RETRY_DELAY = 1; // 秒:Redis锁重试间隔 + public const int SECS_TIMEOUT_HTTP_CLIENT = 15; // 秒:超时时间-默认HTTP客户端 + public const int SECS_TIMEOUT_JOB = 600; // 秒:超时时间-作业 } \ No newline at end of file