mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-23 14:55:42 +00:00
add daily checklist module;adjust master data;adjust migration
This commit is contained in:
@@ -2,13 +2,13 @@ package validation
|
||||
|
||||
type Create struct {
|
||||
Name string `json:"name" validate:"required_strict,min=3"`
|
||||
KandangIDs string `json:"kandang_ids" validate:"required"`
|
||||
KandangIDs []uint `json:"kandang_ids" validate:"required,min=1,dive,required"`
|
||||
IsActive bool `json:"is_active"`
|
||||
}
|
||||
|
||||
type Update struct {
|
||||
Name *string `json:"name,omitempty" validate:"omitempty"`
|
||||
KandangIDs *string `json:"kandang_ids,omitempty"`
|
||||
KandangIDs *[]uint `json:"kandang_ids,omitempty" validate:"omitempty,min=1,dive,required"`
|
||||
IsActive *bool `json:"is_active,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user