This commit is contained in:
fengchuanhn@gmail.com
2026-05-21 16:38:11 +08:00
parent 8d5f5f2608
commit 13c8493e4c
8 changed files with 116 additions and 14 deletions

View File

@@ -10,6 +10,7 @@ class DesktopConfigOut(BaseModel):
name: str
value: str
mark: str | None = None
oem_id: int = 1
created_at: datetime
updated_at: datetime
@@ -18,6 +19,7 @@ class DesktopConfigCreate(BaseModel):
name: str = Field(min_length=1, max_length=64)
value: str = Field(min_length=0)
mark: str | None = Field(default=None, max_length=255)
oem_id: int = Field(default=1, ge=1)
@field_validator("name")
@classmethod