This commit is contained in:
ktianc 2024-01-21 10:56:01 +08:00
parent 76a5b9b467
commit 7329231c61
3 changed files with 3 additions and 4 deletions

View File

@ -7,9 +7,8 @@
# @desc : pydantic 模型,用于数据库序列化操作
from pydantic import BaseModel, ConfigDict, Field
from pydantic import BaseModel, ConfigDict
from core.data_types import DatetimeStr
from .menu import MenuSimpleOut
class Dept(BaseModel):

View File

@ -15,7 +15,7 @@ from .dept import DeptSimpleOut
class User(BaseModel):
name: str | None = None
name: str
telephone: Telephone
email: Email | None = None
nickname: str | None = None

View File

@ -5,9 +5,9 @@
# @File : main.py
# @IDE : PyCharm
# @desc : 简要说明
import datetime
import os.path
from application.settings import BASE_DIR