mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-06-21 05:01:07 +00:00
auto-commit for 9348b44e-e5f5-4058-9c1f-5aa21beca3c1
This commit is contained in:
@@ -77,6 +77,28 @@ class WalletBalanceResponse(BaseModel):
|
|||||||
reserved: str
|
reserved: str
|
||||||
timestamp: datetime = Field(default_factory=datetime.utcnow)
|
timestamp: datetime = Field(default_factory=datetime.utcnow)
|
||||||
|
|
||||||
|
# Auth Models
|
||||||
|
class SignUpRequest(BaseModel):
|
||||||
|
email: EmailStr
|
||||||
|
password: str
|
||||||
|
first_name: str
|
||||||
|
last_name: str
|
||||||
|
phone: str
|
||||||
|
referral_code: Optional[str] = None
|
||||||
|
language: str = "en"
|
||||||
|
|
||||||
|
class SignInRequest(BaseModel):
|
||||||
|
email: EmailStr
|
||||||
|
password: str
|
||||||
|
|
||||||
|
class AuthResponse(BaseModel):
|
||||||
|
user_id: str
|
||||||
|
email: str
|
||||||
|
access_token: str
|
||||||
|
refresh_token: str
|
||||||
|
first_name: str
|
||||||
|
last_name: str
|
||||||
|
|
||||||
# Add your routes to the router instead of directly to app
|
# Add your routes to the router instead of directly to app
|
||||||
@api_router.get("/")
|
@api_router.get("/")
|
||||||
async def root():
|
async def root():
|
||||||
|
|||||||
Reference in New Issue
Block a user