added main files

This commit is contained in:
2024-04-05 00:38:00 +07:00
commit ba6c68db7f
10 changed files with 708 additions and 0 deletions
+69
View File
@@ -0,0 +1,69 @@
from typing import Optional
from pydantic import BaseModel
class GetPricesData(BaseModel):
group_directions: str
class GetMessageReportData(BaseModel):
id: int
sender_name: str
text: str
phone: str
type: int
n_raw_sms: int
start_time: str # TODO: в будущем datetime pls
last_update: str # TODO: в будущем datetime pls
id_tarifs_group: int
state: int
state_text: str
credits: float
class WaitCallData(BaseModel):
call_to_number: str
id_call: str
waiting_call_from: str
class GetProfileData(BaseModel):
id: int
email: str
first_name: str
last_name: str
credits: float
credits_used: float
credits_name: str
currency: str
sender_name: str
referral_id: Optional[int]
class PushMessageData(BaseModel):
id: int
credits: float
n_raw_sms: int
sender_name: str
call_to_number: Optional[str]
class Message(BaseModel):
err_code: str
text: str
type: str
class GetProfileAnswer(BaseModel):
msg: Optional[Message]
data: Optional[GetProfileData]
class Answer(BaseModel):
msg: Optional[Message]
data: Optional[dict]
class BaseAnswer(BaseModel):
response: Answer