Merge branch 'feat/hpp-per-farm' into 'development'

Feat/hpp per farm

See merge request mbugroup/lti-api!602
This commit is contained in:
Giovanni Gabriel Septriadi
2026-06-06 01:20:25 +00:00
8 changed files with 928 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"`