add query param location id

This commit is contained in:
giovanni
2026-04-13 10:51:12 +07:00
parent 30a47ffc71
commit d1612e5c65
3 changed files with 14 additions and 0 deletions
@@ -19,6 +19,7 @@ type Query struct {
KandangId uint `query:"kandang_id" validate:"omitempty"`
Category string `query:"category" validate:"omitempty,oneof=Growing Laying"`
AreaId uint `query:"area_id" validate:"omitempty"`
LocationId uint `query:"location_id" validate:"omitempty,number,gt=0"`
SortBy string `query:"sort_by" validate:"omitempty,oneof=created_at period"`
SortOrder string `query:"sort_order" validate:"omitempty,oneof=ASC DESC"`
StepName string `query:"step_name" validate:"omitempty,max=50"`