feat[BE-127]; creating correct logic update and delete transfer laying

This commit is contained in:
aguhh18
2025-11-06 10:31:35 +07:00
parent 4aed480662
commit 1c99093ff8
2 changed files with 161 additions and 19 deletions
@@ -20,8 +20,12 @@ type Create struct {
}
type Update struct {
TransferDate *string `json:"transfer_date,omitempty" validate:"omitempty,datetime=2006-01-02"`
Reason *string `json:"reason,omitempty" validate:"omitempty,max=1000"`
TransferDate string `json:"transfer_date" validate:"required,datetime=2006-01-02"`
SourceProjectFlockId uint `json:"source_project_flock_id" validate:"required"`
TargetProjectFlockId uint `json:"target_project_flock_id" validate:"required"`
SourceKandangs []SourceKandangDetail `json:"source_kandangs" validate:"required,min=1,dive,required"`
TargetKandangs []TargetKandangDetail `json:"target_kandangs" validate:"required,min=1,dive,required"`
Reason string `json:"reason" validate:"omitempty,max=1000"`
}
type Query struct {