feat: fcm apis

feat: push notification api
This commit is contained in:
2025-05-14 17:13:11 +05:30
parent 287b6e5761
commit 2efc09cf20
11 changed files with 243 additions and 2 deletions
+9 -1
View File
@@ -84,4 +84,12 @@ class CallTranscriptsBase(BaseModel):
patient_number:str
call_duration:str
call_received_time:str
transcript_key_id:str
transcript_key_id:str
class NotificationBase(BaseModel):
title: str
message: str
is_read: bool
sender_id: int
receiver_id: int
+4
View File
@@ -45,3 +45,7 @@ class ClinicDoctorCreate(ClinicDoctorBase):
class CallTranscriptsCreate(CallTranscriptsBase):
pass
class NotificationCreate(NotificationBase):
pass
+9
View File
@@ -150,5 +150,14 @@ class CallTranscriptsResponse(CallTranscriptsBase):
create_time: datetime
update_time: datetime
class Config:
orm_mode = True
class NotificationResponse(NotificationBase):
id: int
create_time: datetime
update_time: datetime
class Config:
orm_mode = True