feat(routers): 完善auth、card、file、user相关接口开发

This commit is contained in:
xingc
2025-02-22 11:38:56 +08:00
parent 02ddc81c51
commit 1b2f9c7539
11 changed files with 573 additions and 123 deletions

View File

@@ -14,3 +14,13 @@ class WechatLoginIn(BaseModel):
phone: Optional[constr(pattern='^1[0-9]{10}$')] = None
encrypted_data: Optional[str] = None
iv: Optional[str] = None
class Token(BaseModel):
access_token: str
token_type: str
class LoginUser(BaseModel):
nickname: str
user_id: int