mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-24 07:15:43 +00:00
adjust response api summary daily checklist
This commit is contained in:
@@ -151,6 +151,10 @@ func (u *DailyChecklistController) GetSummary(c *fiber.Ctx) error {
|
|||||||
performanceMap[summary.EmployeeID] = &dto.DailyChecklistPerformanceOverviewDTO{
|
performanceMap[summary.EmployeeID] = &dto.DailyChecklistPerformanceOverviewDTO{
|
||||||
EmployeeID: summary.EmployeeID,
|
EmployeeID: summary.EmployeeID,
|
||||||
EmployeeName: summary.EmployeeName,
|
EmployeeName: summary.EmployeeName,
|
||||||
|
Kandang: dto.DailyChecklistReportEntityDTO{
|
||||||
|
Id: summary.KandangID,
|
||||||
|
Name: summary.KandangName,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,11 +64,12 @@ type DailyChecklistSummaryDTO struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type DailyChecklistPerformanceOverviewDTO struct {
|
type DailyChecklistPerformanceOverviewDTO struct {
|
||||||
EmployeeID uint `json:"employee_id"`
|
EmployeeID uint `json:"employee_id"`
|
||||||
EmployeeName string `json:"employee_name"`
|
EmployeeName string `json:"employee_name"`
|
||||||
TotalActivity int `json:"total_activity"`
|
Kandang DailyChecklistReportEntityDTO `json:"kandang"`
|
||||||
ActivityDone int `json:"activity_done"`
|
TotalActivity int `json:"total_activity"`
|
||||||
ActivityLeft int `json:"activity_left"`
|
ActivityDone int `json:"activity_done"`
|
||||||
|
ActivityLeft int `json:"activity_left"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DailyChecklistReportDTO struct {
|
type DailyChecklistReportDTO struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user