安全:增加测试批次原子清理
This commit is contained in:
@@ -144,6 +144,15 @@ class TransportCryptoSettings(BaseSettings):
|
||||
)
|
||||
|
||||
|
||||
class TestBatchSettings(BaseSettings):
|
||||
"""
|
||||
测试批次安全配置
|
||||
"""
|
||||
|
||||
test_batch_preview_ttl_seconds: int = 600
|
||||
test_batch_online_purge_max_rows: int = 0
|
||||
|
||||
|
||||
class GenSettings:
|
||||
"""
|
||||
代码生成配置
|
||||
@@ -265,6 +274,12 @@ class GetConfig:
|
||||
"""
|
||||
return TransportCryptoSettings()
|
||||
|
||||
def get_test_batch_config(self) -> TestBatchSettings:
|
||||
"""
|
||||
获取测试批次安全配置
|
||||
"""
|
||||
return TestBatchSettings()
|
||||
|
||||
def get_gen_config(self) -> GenSettings:
|
||||
"""
|
||||
获取代码生成配置
|
||||
@@ -328,6 +343,8 @@ RedisConfig = get_config.get_redis_config()
|
||||
LogConfig = get_config.get_log_config()
|
||||
# 传输层加解密配置
|
||||
TransportCryptoConfig = get_config.get_transport_crypto_config()
|
||||
# 测试批次安全配置
|
||||
TestBatchConfig = get_config.get_test_batch_config()
|
||||
# 代码生成配置
|
||||
GenConfig = get_config.get_gen_config()
|
||||
# 上传配置
|
||||
|
||||
Reference in New Issue
Block a user