Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatePatientRequest ¶
type CreatePatientResponse ¶
type CreatePatientResponse struct { ID uint64 `json:"id"` Name string `json:"name"` BirthDate *time.Time `json:"birth_date"` Avatar string `json:"avatar"` Sex *domain2.Sex `json:"sex"` Status string `json:"status"` }
func (*CreatePatientResponse) ToDTO ¶
func (p *CreatePatientResponse) ToDTO(d *domain.Patient)
type GetPatientResponse ¶
type GetPatientResponse struct { ID uint64 `json:"id"` Name string `json:"name"` BirthDate *time.Time `json:"birth_date"` Avatar string `json:"avatar"` Sex *domain2.Sex `json:"sex"` Status string `json:"status"` }
func (*GetPatientResponse) ToDTO ¶
func (p *GetPatientResponse) ToDTO(d *domain.Patient)
type NewPatientSessionResponse ¶
type NewPatientSessionResponse struct {
Token string `json:"token"`
}
type RefreshSessionQRRequest ¶
type RefreshSessionQRRequest struct {
OldQR string `json:"old_qr"`
}
type RefreshSessionQRResponse ¶
type RefreshSessionQRResponse struct {
Token string `json:"token"`
}
type UpdatePatientRequest ¶
type UpdatePatientResponse ¶
type UpdatePatientResponse struct { ID uint64 `json:"id"` Name string `json:"name"` BirthDate *time.Time `json:"birth_date"` Avatar string `json:"avatar"` Sex *domain2.Sex `json:"sex"` Status string `json:"status"` }
func (*UpdatePatientResponse) ToDTO ¶
func (p *UpdatePatientResponse) ToDTO(d *domain.Patient)
Click to show internal directories.
Click to hide internal directories.