Export types to json
This commit is contained in:
@@ -13,21 +13,21 @@ type (
|
||||
)
|
||||
|
||||
type settings struct {
|
||||
FoodDaysLookback int
|
||||
FoodAggregatedDaysLookback int
|
||||
FoodDailyLookback int
|
||||
FoodWeeklyLookback int
|
||||
FoodMonthlyLookback int
|
||||
FoodYearlyLookback int
|
||||
FoodDaysLookback int `default:"30" json:"foodDaysLookback"`
|
||||
FoodAggregatedDaysLookback int `default:"30" json:"foodAggregatedDaysLookback"`
|
||||
FoodDailyLookback int `default:"30" json:"foodDailyLookback"`
|
||||
FoodWeeklyLookback int `default:"4" json:"foodWeeklyLookback"`
|
||||
FoodMonthlyLookback int `default:"4" json:"foodMonthlyLookback"`
|
||||
FoodYearlyLookback int `default:"2" json:"foodYearlyLookback"`
|
||||
|
||||
WeightDaysLookback int
|
||||
WeightAggregatedDaysLookback int
|
||||
WeightDailyLookback int
|
||||
WeightWeeklyLookback int
|
||||
WeightMonthlyLookback int
|
||||
WeightYearlyLookback int
|
||||
WeightDaysLookback int `default:"30" json:"weightDaysLookback"`
|
||||
WeightAggregatedDaysLookback int `default:"30" json:"weightAggregatedDaysLookback"`
|
||||
WeightDailyLookback int `default:"30" json:"weightDailyLookback"`
|
||||
WeightWeeklyLookback int `default:"4" json:"weightWeeklyLookback"`
|
||||
WeightMonthlyLookback int `default:"4" json:"weightMonthlyLookback"`
|
||||
WeightYearlyLookback int `default:"2" json:"weightYearlyLookback"`
|
||||
|
||||
Target int
|
||||
Target int `default:"2000" json:"target"`
|
||||
}
|
||||
|
||||
var Settings settings
|
||||
|
Reference in New Issue
Block a user