mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-24 15:25:43 +00:00
feat[BE]: Refactor Chickin create and approvals support chickin growing and chickin laying, and create get one project flock kandang API
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
package validation
|
||||
|
||||
type Create struct {
|
||||
ProjectFlockId uint `json:"project_flock_id" validate:"required"`
|
||||
KandangId uint `json:"kandang_id" validate:"required"`
|
||||
}
|
||||
|
||||
type Update struct {
|
||||
ProjectFlockId *uint `json:"project_flock_id,omitempty" validate:"omitempty"`
|
||||
KandangId *uint `json:"kandang_id,omitempty" validate:"omitempty"`
|
||||
}
|
||||
|
||||
type Query struct {
|
||||
Page int `query:"page" validate:"omitempty,number,min=1,gt=0"`
|
||||
Limit int `query:"limit" validate:"omitempty,number,min=1,max=100,gt=0"`
|
||||
Search string `query:"search" validate:"omitempty,max=50"`
|
||||
}
|
||||
Reference in New Issue
Block a user