feat: fcm apis
feat: push notification api
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -45,3 +45,7 @@ class ClinicDoctorCreate(ClinicDoctorBase):
|
||||
|
||||
class CallTranscriptsCreate(CallTranscriptsBase):
|
||||
pass
|
||||
|
||||
|
||||
class NotificationCreate(NotificationBase):
|
||||
pass
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user