mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
17 lines
560 B
Go
17 lines
560 B
Go
package validation
|
|
|
|
type Create struct {
|
|
ProjectFlockKandangId uint `json:"project_flock_kandang_id" validate:"required,number,min=1"`
|
|
ChickInDate string `json:"chick_in_date" validate:"required,datetime=2006-01-02"`
|
|
}
|
|
|
|
type Update struct {
|
|
ChickInDate string `json:"chick_in_date" validate:"required,datetime=2006-01-02"`
|
|
}
|
|
|
|
type Query struct {
|
|
Page int `query:"page" validate:"omitempty,number,min=1"`
|
|
Limit int `query:"limit" validate:"omitempty,number,min=1,max=100"`
|
|
Search string `query:"search" validate:"omitempty,max=50"`
|
|
}
|