feat(BE-115,116,117): implement chickin CRUD, approve logic, and stock availabilit

This commit is contained in:
aguhh18
2025-10-20 06:01:16 +07:00
parent 68a670a2bd
commit 83c3e61113
34 changed files with 558 additions and 199 deletions
@@ -1,11 +1,12 @@
package validation
type Create struct {
Name string `json:"name" validate:"required_strict,min=3"`
ProjectFlockId uint `json:"project_flock_id" validate:"required,number,min=1"`
ChickInDate string `json:"chick_in_date" validate:"required,datetime=2006-01-02"`
}
type Update struct {
Name *string `json:"name,omitempty" validate:"omitempty"`
ChickInDate string `json:"chick_in_date" validate:"required,datetime=2006-01-02"`
}
type Query struct {