feat: complete M1-M3 infrastructure — OSS client, native execution chain, rule lifecycle API, system docs
- M1: unified OSS client (upload/download/presign) + path utils + config - M2: rule service with validate/create/publish/rollback + binding CRUD endpoints - M3: native AuditCtx runner, file/rule resolvers, storage adapter with full persistence - docs: SYSTEM_OVERVIEW.md as comprehensive architecture reference - fix: double finalize — terminal state now written once by finalize_run
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
"""规则发布 DTO。"""
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class RulePublishDTO(BaseModel):
|
||||
"""规则版本发布/回滚请求。"""
|
||||
|
||||
versionId: int = Field(..., description="规则版本ID")
|
||||
operatorUserId: int | None = Field(None, description="操作用户ID")
|
||||
@@ -0,0 +1,9 @@
|
||||
"""规则校验 DTO。"""
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class RuleValidateDTO(BaseModel):
|
||||
"""规则 YAML 校验请求。"""
|
||||
|
||||
yamlText: str = Field(..., description="规则 YAML 正文")
|
||||
@@ -0,0 +1,11 @@
|
||||
"""规则版本创建 DTO。"""
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class RuleVersionCreateDTO(BaseModel):
|
||||
"""创建规则版本请求。"""
|
||||
|
||||
yamlText: str = Field(..., description="规则 YAML 正文")
|
||||
changeNote: str | None = Field(None, description="版本变更说明")
|
||||
editorUserId: int | None = Field(None, description="编辑者用户ID")
|
||||
Reference in New Issue
Block a user