Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateMedicationRequest ¶
type CreateMedicationResponse ¶
type CreateMedicationResponse struct { ID uint64 `json:"id"` Name string `json:"name"` Type string `json:"type"` Patient *patient.Patient `json:"patient"` Avatar string `json:"avatar"` Schedules []*CreateScheduleResponse `json:"schedules"` Status string `json:"status"` Dosage string `json:"dosage"` Quantity int `json:"quantity"` Times []string `json:"times"` }
func (*CreateMedicationResponse) ToDTO ¶
func (c *CreateMedicationResponse) ToDTO(d *medication.Medication)
type CreateScheduleRequest ¶
type CreateScheduleResponse ¶
type GetMedicationResponse ¶
type GetMedicationResponse struct { ID uint64 `json:"id"` Name string `json:"name"` Type string `json:"type"` Avatar string `json:"avatar"` Dosage string `json:"dosage"` Quantity int `json:"quantity"` Times []string `json:"times"` Schedules []*CreateScheduleResponse `json:"schedules"` Status string `json:"status"` }
func (*GetMedicationResponse) ToDTO ¶
func (c *GetMedicationResponse) ToDTO(d *medication.Medication)
type UpdateMedicationRequest ¶
type UpdateMedicationResponse ¶
type UpdateMedicationResponse struct { ID uint64 `json:"id"` Name string `json:"name"` Type string `json:"type"` Patient *patient.Patient `json:"patient"` Avatar string `json:"avatar"` Schedules []*UpdateScheduleResponse `json:"schedules"` Status string `json:"status"` Times []string `json:"times"` Dosage string `json:"dosage"` Quantity int `json:"quantity"` }
func (*UpdateMedicationResponse) ToDTO ¶
func (c *UpdateMedicationResponse) ToDTO(d *medication.Medication)
type UpdateScheduleRequest ¶
Click to show internal directories.
Click to hide internal directories.