package validation

type Query struct {
	ModuleName  string `json:"module_name" validate:"required_strict"`
	ModuleId    *uint  `json:"module_id,omitempty" validate:"omitempty,gt=0"`
	GroupByStep bool   `json:"group_by_step"`
	Page        int    `query:"page" validate:"omitempty,number,min=1"`
	Limit       int    `query:"limit" validate:"omitempty,number,min=1,max=100,gt=0"`
	Search      string `query:"search" validate:"omitempty,max=50"`
	OrderByDate string `query:"order_by_date" validate:"omitempty,oneof=ASC DESC"`
}
