caregiver

package
v0.0.0-...-2741532 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCaregiverRequest

type CreateCaregiverRequest struct {
	Name      string     `json:"name"`
	BirthDate *time.Time `json:"birth_date"`
	Avatar    *string    `json:"avatar"`
	Sex       *int
	Email     string `json:"email"`
}

type CreateCaregiverResponse

type CreateCaregiverResponse struct {
	ID        uint64     `json:"id"`
	Name      string     `json:"name"`
	BirthDate *time.Time `json:"birth_date"`
	Avatar    string     `json:"avatar"`
	Sex       *domain.Sex
	Email     string `json:"email"`
	Status    string `json:"status"`
	Uid       string
}

func (*CreateCaregiverResponse) ToDTO

type GetCaregiverResponse

type GetCaregiverResponse struct {
	ID        uint64                      `json:"id"`
	Name      string                      `json:"name"`
	BirthDate *time.Time                  `json:"birth_date"`
	Avatar    string                      `json:"avatar"`
	Sex       *domain.Sex                 `json:"sex"`
	Email     string                      `json:"email"`
	Status    string                      `json:"status"`
	Patient   *patient.GetPatientResponse `json:"patient"`
}

func (*GetCaregiverResponse) ToDTO

type LinkPatientDeviceResponse

type LinkPatientDeviceResponse struct {
	Token   string `json:"token"`
	Success bool   `json:"success"`
}

type UpdateCaregiverRequest

type UpdateCaregiverRequest struct {
	Name      *string    `json:"name"`
	Email     *string    `json:"email"`
	BirthDate *time.Time `json:"birth_date"`
	Sex       *int
	Avatar    *string `json:"avatar"`
}

type UpdateCaregiverResponse

type UpdateCaregiverResponse struct {
	ID        uint64     `json:"id"`
	Name      string     `json:"name"`
	BirthDate *time.Time `json:"birth_date"`
	Avatar    string     `json:"avatar"`
	Sex       *domain.Sex
	Email     string `json:"email"`
	Status    string `json:"status"`
}

func (*UpdateCaregiverResponse) ToDTO

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL