2025-01-05 21:07:34 +08:00
|
|
|
from pydantic import BaseModel
|
|
|
|
|
2025-01-09 06:43:18 +08:00
|
|
|
|
|
|
|
class MobileNumberBase(BaseModel):
|
2025-01-05 21:07:34 +08:00
|
|
|
rid: int
|
|
|
|
enabled: int
|
|
|
|
dateline: int | None = None
|
|
|
|
|
|
|
|
|
2025-01-09 06:43:18 +08:00
|
|
|
class MobileNumberCreate(MobileNumberBase):
|
2025-01-05 21:07:34 +08:00
|
|
|
pass
|
|
|
|
|
2025-01-09 06:43:18 +08:00
|
|
|
|
|
|
|
class MobileNumber(MobileNumberBase):
|
2025-01-05 21:07:34 +08:00
|
|
|
id: int
|
|
|
|
|
|
|
|
class Config:
|
2025-01-09 06:43:18 +08:00
|
|
|
from_attributes = True
|