refactor(tenant): 优化租户配置,增加 defaultTenantId 并弱化 TenantProperties 依赖

This commit is contained in:
2025-07-19 12:55:54 +08:00
parent aadf879be0
commit 9eff846711
8 changed files with 129 additions and 24 deletions

View File

@@ -202,12 +202,12 @@ continew-starter.tenant:
enabled: true
# 隔离级别默认LINE行级
isolation-level: LINE
# 超级/默认租户 ID超管用户所在租户默认0
super-tenant-id: 0
# 请求头中租户 ID 键名
tenant-id-header: X-Tenant-Id
# 请求头中租户编码键名
tenant-code-header: X-Tenant-Code
# 默认租户 ID超管用户所在租户默认0
default-tenant-id: 0
# 忽略表(忽略拼接租户条件)
ignore-tables:
- tenant # 租户表