feat: add tenant-scoped rule and permission management
This commit is contained in:
@@ -11,6 +11,10 @@ class RuleConfigPackVO(BaseModel):
|
||||
rootGroupId: int | None = Field(None, description="一级分组ID")
|
||||
bindingId: int | None = Field(None, description="当前命中的规则集绑定ID")
|
||||
ruleSetId: int | None = Field(None, description="命中的规则集ID")
|
||||
effectiveTenantCode: str | None = Field(None, description="当前命中的生效租户编码")
|
||||
effectiveScopeType: str | None = Field(None, description="当前命中的生效作用域类型")
|
||||
isInherited: bool = Field(False, description="当前规则是否来自继承作用域")
|
||||
sourceRuleSetId: int | None = Field(None, description="来源规则集ID")
|
||||
ruleType: str | None = Field(None, description="规则类型编码")
|
||||
ruleName: str | None = Field(None, description="规则集名称")
|
||||
currentVersionId: int | None = Field(None, description="规则集当前版本ID")
|
||||
@@ -25,6 +29,7 @@ class RuleConfigPackVO(BaseModel):
|
||||
subtype: str = Field("", description="二级业务子类型名称")
|
||||
yamlText: str = Field("", description="当前规则 YAML 正文")
|
||||
sourceStatus: str = Field(..., description="ready/empty/missing")
|
||||
rules: list["RuleConfigPackRuleSummaryVO"] = Field(default_factory=list, description="规则摘要列表")
|
||||
|
||||
|
||||
class RuleConfigPackRuleSummaryVO(BaseModel):
|
||||
@@ -57,6 +62,10 @@ class RuleConfigPackListVO(BaseModel):
|
||||
rootGroupId: int | None = Field(None, description="一级分组ID")
|
||||
bindingId: int | None = Field(None, description="当前命中的规则集绑定ID")
|
||||
ruleSetId: int | None = Field(None, description="命中的规则集ID")
|
||||
effectiveTenantCode: str | None = Field(None, description="当前命中的生效租户编码")
|
||||
effectiveScopeType: str | None = Field(None, description="当前命中的生效作用域类型")
|
||||
isInherited: bool = Field(False, description="当前规则是否来自继承作用域")
|
||||
sourceRuleSetId: int | None = Field(None, description="来源规则集ID")
|
||||
ruleType: str | None = Field(None, description="规则类型编码")
|
||||
ruleName: str | None = Field(None, description="规则集名称")
|
||||
currentVersionId: int | None = Field(None, description="规则集当前版本ID")
|
||||
|
||||
Reference in New Issue
Block a user