Documentation
¶
Overview ¶
Package dto provides data transfer objects for the events service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateEventInput ¶
type CreateEventInput struct {
Title string `json:"title"`
Datetime time.Time `json:"start_date"`
Duration time.Duration `json:"end_date"`
UserID string `json:"user_id"`
Description *string `json:"description,omitempty"`
RemindIn *time.Duration `json:"remind_in,omitempty"`
}
CreateEventInput represents the input for creating an event.
type DateFilterInput ¶
type DateFilterInput struct {
Date time.Time `json:"date"`
UserID *string `json:"user_id"`
Period Period `json:"period"`
}
DateFilterInput represents the input for getters by a fixed period, starting from a specific date.
type DateRangeInput ¶
type DateRangeInput struct {
DateStart time.Time `json:"date_start"`
DateEnd time.Time `json:"date_end"`
UserID *string `json:"user_id"`
}
DateRangeInput represents the input for getters by a range of dates.
type Period ¶
type Period uint8
Period represents a period of time.
func (Period) MarshalJSON ¶
MarshalJSON impelements custom JSON marshaling for Period type.
type UpdateEventInput ¶
type UpdateEventInput struct {
ID uuid.UUID `json:"id"`
Title *string `json:"title,omitempty"`
Datetime *time.Time `json:"start_date,omitempty"`
Duration *time.Duration `json:"end_date,omitempty"`
UserID *string `json:"user_id,omitempty"`
Description *string `json:"description,omitempty"`
RemindIn *time.Duration `json:"remind_in,omitempty"`
}
UpdateEventInput represents the input for updating an event.
Click to show internal directories.
Click to hide internal directories.