first init
This commit is contained in:
16
core/routers/auth/schema.py
Normal file
16
core/routers/auth/schema.py
Normal file
@@ -0,0 +1,16 @@
|
||||
# -*- coding = utf-8 -*-
|
||||
# @Time : 2025/2/17 下午2:30
|
||||
# @File : schema.py
|
||||
# @Software : PyCharm
|
||||
# @Author : xingc
|
||||
# @Desc :
|
||||
from typing import Optional
|
||||
|
||||
from pydantic import BaseModel, constr
|
||||
|
||||
|
||||
class WechatLoginIn(BaseModel):
|
||||
code: str
|
||||
phone: Optional[constr(pattern='^1[0-9]{10}$')] = None
|
||||
encrypted_data: Optional[str] = None
|
||||
iv: Optional[str] = None
|
||||
Reference in New Issue
Block a user