mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 05:21:57 +00:00
adjust validation limit max 100
This commit is contained in:
@@ -2,7 +2,7 @@ package validation
|
||||
|
||||
type ExpenseQuery struct {
|
||||
Page int `query:"page" validate:"omitempty,min=1,gt=0"`
|
||||
Limit int `query:"limit" validate:"omitempty,min=1,max=100,gt=0"`
|
||||
Limit int `query:"limit" validate:"omitempty,min=1,gt=0"`
|
||||
Search string `query:"search" validate:"omitempty,max=100"`
|
||||
Category string `query:"category" validate:"omitempty,oneof=BOP NON-BOP"`
|
||||
SupplierId int64 `query:"supplier_id" validate:"omitempty"`
|
||||
@@ -65,7 +65,7 @@ type DebtSupplierQuery struct {
|
||||
|
||||
type HppPerKandangQuery struct {
|
||||
Page int `query:"page" validate:"omitempty,min=1,gt=0"`
|
||||
Limit int `query:"limit" validate:"omitempty,min=1,max=1000,gt=0"`
|
||||
Limit int `query:"limit" validate:"omitempty,min=10,gt=0"`
|
||||
Period string `query:"period" validate:"required"`
|
||||
ShowUnrecorded bool `query:"show_unrecorded"`
|
||||
AreaIDs []int64 `query:"-"`
|
||||
@@ -82,7 +82,7 @@ type HppV2BreakdownQuery struct {
|
||||
|
||||
type ExpenseDepreciationQuery struct {
|
||||
Page int `query:"page" validate:"omitempty,min=1,gt=0"`
|
||||
Limit int `query:"limit" validate:"omitempty,min=1,max=1000,gt=0"`
|
||||
Limit int `query:"limit" validate:"omitempty,min=10,gt=0"`
|
||||
Period string `query:"period" validate:"required,datetime=2006-01-02"`
|
||||
ForceRecompute bool `query:"force_recompute"`
|
||||
ProjectFlockIDs []int64 `query:"-"`
|
||||
@@ -105,7 +105,7 @@ type ProductionResultQuery struct {
|
||||
|
||||
type CustomerPaymentQuery struct {
|
||||
Page int `query:"page" validate:"omitempty,min=1,gt=0"`
|
||||
Limit int `query:"limit" validate:"omitempty,min=1,max=100,gt=0"`
|
||||
Limit int `query:"limit" validate:"omitempty,min=1,gt=0"`
|
||||
CustomerIDs []uint `query:"customer_ids" validate:"omitempty,dive,gt=0"`
|
||||
FilterBy string `query:"filter_by" validate:"omitempty,oneof=TRANS_DATE REALIZATION_DATE"`
|
||||
StartDate string `query:"start_date" validate:"omitempty,datetime=2006-01-02"`
|
||||
|
||||
Reference in New Issue
Block a user