ini api per farm

This commit is contained in:
giovanni
2026-06-03 00:30:41 +07:00
parent ef2f9568ad
commit 93ed89b4ef
8 changed files with 918 additions and 0 deletions
@@ -78,6 +78,15 @@ type HppPerKandangQuery struct {
WeightMax *float64 `query:"-"`
}
type HppPerFarmQuery struct {
Page int `query:"page" validate:"omitempty,min=1,gt=0"`
Limit int `query:"limit" validate:"omitempty,min=1,gt=0"`
StartDate string `query:"start_date" validate:"required,datetime=2006-01-02"`
EndDate string `query:"end_date" validate:"required,datetime=2006-01-02"`
AreaIDs []int64 `query:"-"`
LocationIDs []int64 `query:"-"`
}
type HppV2BreakdownQuery struct {
ProjectFlockKandangID uint `query:"project_flock_kandang_id" validate:"required,gt=0"`
Period string `query:"period" validate:"required,datetime=2006-01-02"`