feat: add rule draft permission flow
This commit is contained in:
Executable → Regular
+11
-1
@@ -1,4 +1,4 @@
|
||||
from pydantic import BaseModel, Field
|
||||
from pydantic import BaseModel, ConfigDict, Field
|
||||
|
||||
|
||||
class EvaluationPointGroupCreateDTO(BaseModel):
|
||||
@@ -61,3 +61,13 @@ class EvaluationPointGroupBindingUpdateDTO(BaseModel):
|
||||
priority: int | None = Field(None, description="优先级")
|
||||
is_active: bool | None = Field(None, description="是否启用")
|
||||
note: str | None = Field(None, description="备注")
|
||||
|
||||
|
||||
class EvaluationPointGroupRuleDraftCreateDTO(BaseModel):
|
||||
"""二级分组下新建规则 YAML 草稿请求。"""
|
||||
|
||||
model_config = ConfigDict(populate_by_name=True)
|
||||
|
||||
yaml_text: str = Field(..., min_length=1, alias="yamlText", description="完整规则 YAML 正文")
|
||||
change_note: str | None = Field(None, alias="changeNote", description="版本变更说明")
|
||||
editor_user_id: int | None = Field(None, alias="editorUserId", description="编辑者用户ID")
|
||||
|
||||
Reference in New Issue
Block a user