adjust response api closing data produksi

This commit is contained in:
MacBook Air M1
2025-12-18 15:25:15 +07:00
parent d675b1e826
commit 047162699e
2 changed files with 75 additions and 57 deletions
+6 -6
View File
@@ -71,31 +71,31 @@ type ClosingSalesDTO struct {
SalesPopulation int `json:"sales_population"`
SalesWeight float64 `json:"sales_weight"`
AverageWeight float64 `json:"average_weight"`
AverageSellingPrice float64 `json:"average_selling_price"`
AverageSellingPrice float64 `json:"chicken_average_selling_price"`
}
type ClosingEggSalesDTO struct {
EggPieces int `json:"egg_pieces"`
EggMassKg float64 `json:"egg_mass_kg"`
AverageEggWeightKg float64 `json:"average_egg_weight_kg"`
AverageSellingPrice float64 `json:"average_selling_price"`
AverageSellingPrice float64 `json:"egg_average_selling_price"`
}
type ClosingPerformanceDTO struct {
Depletion float64 `json:"depletion"`
Age float64 `json:"age"`
Age float64 `json:"age_day"`
MortalityStd float64 `json:"mortality_std"`
MortalityAct float64 `json:"mortality_act"`
DeffMortality float64 `json:"deff_mortality"`
FcrStd float64 `json:"fcr_std"`
FcrAct float64 `json:"fcr_act"`
DeffFcr float64 `json:"deff_fcr"`
Adg float64 `json:"adg"`
Awg float64 `json:"awg"`
}
type ClosingSalesGroupDTO struct {
ChickenProduction ClosingSalesDTO `json:"chicken_production"`
EggProduction ClosingEggSalesDTO `json:"egg_production"`
Chicken ClosingSalesDTO `json:"chicken"`
Egg *ClosingEggSalesDTO `json:"egg,omitempty"`
}
type ClosingProductionReportDTO struct {