mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
deleted grade in recording egg unfinished: daily gain question, and confirm counting about fcr, adg, mortality and others
This commit is contained in:
@@ -69,7 +69,6 @@ type RecordingEggDTO struct {
|
||||
ProductWarehouseId uint `json:"product_warehouse_id"`
|
||||
Qty int `json:"qty"`
|
||||
Weight *float64 `json:"weight,omitempty"`
|
||||
Grade *string `json:"grade,omitempty"`
|
||||
ProductWarehouse productWarehouseDTO.ProductWarehouseDTO `json:"product_warehouse"`
|
||||
}
|
||||
|
||||
@@ -241,7 +240,6 @@ func ToRecordingEggDTOs(eggs []entity.RecordingEgg) []RecordingEggDTO {
|
||||
ProductWarehouseId: egg.ProductWarehouseId,
|
||||
Qty: egg.Qty,
|
||||
Weight: egg.Weight,
|
||||
Grade: egg.Grade,
|
||||
ProductWarehouse: mapProductWarehouseDTO(&egg.ProductWarehouse),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,6 @@ type (
|
||||
ProductWarehouseId uint `json:"product_warehouse_id" validate:"required,number,min=1"`
|
||||
Qty int `json:"qty" validate:"required,number,min=0"`
|
||||
Weight *float64 `json:"weight,omitempty" validate:"omitempty,gte=0"`
|
||||
Grade *string `json:"grade,omitempty" validate:"omitempty"`
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user