scheduling

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DailyScheduling

type DailyScheduling struct {
	Day        int          `json:"day"`
	DayName    string       `json:"day_name"`
	MonthName  string       `json:"month_name"`
	Date       time.Time    `json:"date"`
	DayWeek    int          `json:"day_week"`
	DayColors  []string     `json:"day_colors"`
	Scheduling []Scheduling `json:"schedulings"`
}

func (DailyScheduling) Len

func (slice DailyScheduling) Len() int

func (DailyScheduling) Less

func (slice DailyScheduling) Less(i, j int) bool

func (DailyScheduling) Swap

func (slice DailyScheduling) Swap(i, j int)

type DoneSchedulingResponse

type DoneSchedulingResponse struct {
	ID                uint64     `json:"id"`
	Dosage            string     `json:"dosage"`
	Quantity          int        `json:"quantity"`
	Avatar            string     `json:"avatar"`
	MedicationTime    *time.Time `json:"medication_time"`
	MedicationTakenAt *time.Time `json:"medication_taken_at"`
	Status            string     `json:"status"`
}

func (*DoneSchedulingResponse) ToDTO

type JobResponse

type JobResponse struct {
	TotalToProcess       int
	ProcessedWithSuccess int
	ProcessedWithError   int
	Error                error
}

type Scheduling

type Scheduling struct {
	Id                  uint64     `json:"id"`
	Name                string     `json:"name"`
	MedicationTime      time.Time  `json:"medication_time"`
	MedicationTakenTime *time.Time `json:"medication_taken_time"`
	Dosage              string     `json:"dosage"`
	Quantity            int        `json:"quantity"`
	MedicationType      string     `json:"medication_type"`
	Status              string     `json:"status"`
	Image               string     `json:"image"`
	Color               string     `json:"color"`
}

Jump to

Keyboard shortcuts

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