update. 更新站点基本信息接口
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user