update. 更新站点基本信息接口

This commit is contained in:
ngfchl
2026-04-08 15:27:08 +08:00
parent b7cacbcf6a
commit b1e7488970
2 changed files with 97 additions and 4 deletions
+18
View File
@@ -101,3 +101,21 @@ class MainMenuOut(MainMenuBase):
# 告诉 Pydantic 如何处理递归模型
MainMenuOut.model_rebuild()
class BaseInfoIn(Schema):
title: str
e_title: str
address: str
postal: Optional[str] = ""
telephone: Optional[str] = ""
fax: Optional[str] = ""
unit: Optional[str] = ""
filing: Optional[str] = ""
is_active: bool = False
class BaseInfoOut(BaseInfoIn):
id: int
official_account: Optional[str] = None
weibo: Optional[str] = None