Documentation ¶
Index ¶
- type AuthRequest
- type AuthResponse
- type ChatRequest
- type ChatResponse
- type CheckIsPregnant
- type CurrentNutritionsResponse
- type GenerateNutritionRequest
- type GenerateNutritionsResponse
- type LoginRequest
- type LoginResponse
- type NonPregnantProfileResponse
- type NutritionsRequest
- type NutritionsResponse
- type PregnantProfileResponse
- type ProfileListResponse
- type RegisterProfileNotPregnantRequest
- type RegisterProfilePregnantRequest
- type RegisterProfileResponse
- type UserTokenData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRequest ¶
type AuthResponse ¶
type ChatRequest ¶
type ChatRequest struct {
Message string `json:"message" binding:"required"`
}
type ChatResponse ¶
type CheckIsPregnant ¶
type CheckIsPregnant struct {
ProfileType float64 `form:"profile-type" binding:"required"`
}
type CurrentNutritionsResponse ¶
type CurrentNutritionsResponse struct { CurrentCalories float64 `json:"current_calories"` CurrentCarbohydrates float64 `json:"current_carbohydrates"` CurrentProtein float64 `json:"current_protein"` MaxProtein float64 `json:"max_protein"` MaxCarbohydrates float64 `json:"max_carbohydrates"` MaxCalories float64 `json:"max_calories"` }
type GenerateNutritionRequest ¶
type GenerateNutritionRequest struct {
Picture *multipart.FileHeader `form:"picture" binding:"required"`
}
type LoginRequest ¶
type LoginResponse ¶
type NonPregnantProfileResponse ¶
type NonPregnantProfileResponse struct { Id string `json:"id"` UserID string `json:"user_id"` ProfileName string `json:"profile_name"` IsPregnant bool `json:"is_pregnant"` BirthDate time.Time `json:"birth_date"` Height float64 `json:"height"` Weight float64 `json:"weight"` ChildAgeInDay int `json:"child_age_in_day"` ChildAgeInWeek int `json:"child_age_in_week"` ChildAgeInMonth int `json:"child_age_in_month"` ChildAgeInYear int `json:"child_age_in_year"` }
type NutritionsRequest ¶
type NutritionsRequest struct { Picture *multipart.FileHeader `form:"picture" binding:"required"` FoodName string `form:"food_name" binding:"required"` Calories float64 `form:"calories" binding:"required"` Carbohidrate float64 `form:"carbohydrates" binding:"required"` Protein float64 `form:"protein" binding:"required"` }
type NutritionsResponse ¶
type PregnantProfileResponse ¶
type PregnantProfileResponse struct { Id string `json:"id"` UserID string `json:"user_id"` ProfileName string `json:"profile_name"` IsPregnant bool `json:"is_pregnant"` PregnantDate time.Time `json:"pregnant_date"` PregnantAgeInDay int `json:"pregnant_age_in_day"` PregnantAgeInWeek int `json:"pregnant_age_in_week"` PregnantAgeInMonth int `json:"pregnant_age_in_month"` }
type ProfileListResponse ¶
type RegisterProfileNotPregnantRequest ¶
type RegisterProfileNotPregnantRequest struct { UserID string `json:"user_id" binding:"required"` IsPregnant bool ProfileName string `json:"profile_name" binding:"required"` BirthDate string `json:"birth_date" binding:"required"` Weight float64 `json:"weight" binding:"required"` Height float64 `json:"height" binding:"required"` }
type RegisterProfileResponse ¶
Click to show internal directories.
Click to hide internal directories.