Documentation ¶
Index ¶
- type ConfirmVisitModel
- type CreateWeightStatisticModel
- type Credentials
- type DaysOfWeekDto
- type ExerciseCreateModel
- type ExerciseFullModel
- type ExerciseShortModel
- type GeneralStatisticModel
- type Healthcheck
- type JsonDate
- type ProblemDetails
- type ProfileWorkoutCreateModel
- type ProfileWorkoutShortModel
- type TokenResponse
- type WeightStatisticModel
- type WorkoutCreateModel
- type WorkoutFullModel
- type WorkoutPlanCreateModel
- type WorkoutPlanFullModel
- type WorkoutPlanShortModel
- type WorkoutShortModel
- type WorkoutStatisticModel
- type WorkoutStatisticShortModel
- type WorkoutsCalendarModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfirmVisitModel ¶
type Credentials ¶
type DaysOfWeekDto ¶
type DaysOfWeekDto int
const ( Sunday DaysOfWeekDto = iota Monday Tuesday Wednesday Thursday Friday Saturday )
func (DaysOfWeekDto) MarshalJSON ¶
func (s DaysOfWeekDto) MarshalJSON() ([]byte, error)
MarshalJSON marshals the enum as a quoted json string
func (DaysOfWeekDto) String ¶
func (s DaysOfWeekDto) String() string
func (*DaysOfWeekDto) UnmarshalJSON ¶
func (s *DaysOfWeekDto) UnmarshalJSON(b []byte) error
UnmarshalJSON unmashals a quoted json string to the enum value
type ExerciseCreateModel ¶
type ExerciseFullModel ¶
type ExerciseFullModel struct { Id string `json:"id"` Name string `json:"name"` ShortDescription *string `json:"shortDescription"` Complex []*ExerciseFullModel `json:"complex"` }
type ExerciseShortModel ¶
type GeneralStatisticModel ¶
type GeneralStatisticModel struct { WorkoutsPerMonth int `json:"workoutsPerMonth"` WorkoutsPerYear int `json:"workoutsPerYear"` WeightStatistic []*WeightStatisticModel `json:"weightStatistic"` }
type Healthcheck ¶
type JsonDate ¶
JsonDate Date in ISO 8601 format
func (JsonDate) MarshalJSON ¶
func (*JsonDate) UnmarshalJSON ¶
type ProblemDetails ¶
type ProblemDetails struct { // A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, // it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). // When this member is not present, its value is assumed to be "about:blank". Type string `json:"type,omitempty"` // A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, // except for purposes of localization(e.g., using proactive content negotiation; see[RFC7231], Section 3.4). Title string `json:"title"` // A human-readable explanation specific to this occurrence of the problem. Detail string `json:"detail,omitempty"` // A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. Instance string `json:"instance"` // The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem. Status int `json:"status"` // Invalid params in request InvalidParams []*models.ParamError `json:"invalid-params,omitempty"` }
ProblemDetails https://www.rfc-editor.org/rfc/rfc7807
type ProfileWorkoutCreateModel ¶
type ProfileWorkoutCreateModel struct { WorkoutPlan string `json:"workoutPlan"` Schedule []DaysOfWeekDto `json:"schedule"` }
type ProfileWorkoutShortModel ¶
type ProfileWorkoutShortModel struct {
Id string `json:"id"`
}
type TokenResponse ¶
type TokenResponse struct {
Token string `json:"token"`
}
type WeightStatisticModel ¶
type WorkoutCreateModel ¶
type WorkoutFullModel ¶
type WorkoutFullModel struct { Id string `json:"id"` CustomName *string `json:"customName"` CustomDescription *string `json:"customDescription"` Complex []*ExerciseFullModel `json:"complex"` }
type WorkoutPlanCreateModel ¶
type WorkoutPlanFullModel ¶
type WorkoutPlanFullModel struct { Id string `json:"id"` Name string `json:"name"` ShortDescription *string `json:"shortDescription"` Repeatable bool `json:"repeatable"` Workouts []*WorkoutShortModel `json:"workouts"` }
type WorkoutPlanShortModel ¶
type WorkoutShortModel ¶
type WorkoutStatisticModel ¶
type WorkoutStatisticModel struct { Id string `json:"id"` ScheduledDate JsonDate `json:"scheduledDate"` WorkoutDate *JsonDate `json:"workoutDate,omitempty"` Workout *WorkoutFullModel `json:"workout,omitempty"` Comment *string `json:"comment,omitempty"` }
type WorkoutsCalendarModel ¶
type WorkoutsCalendarModel struct { History []*WorkoutStatisticModel `json:"history"` Current *WorkoutStatisticModel `json:"current"` Upcoming []*WorkoutStatisticModel `json:"upcoming"` }
Click to show internal directories.
Click to hide internal directories.