mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +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{
|
||||
EmployeeID: summary.EmployeeID,
|
||||
EmployeeName: summary.EmployeeName,
|
||||
Kandang: dto.DailyChecklistReportEntityDTO{
|
||||
Id: summary.KandangID,
|
||||
Name: summary.KandangName,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -64,11 +64,12 @@ type DailyChecklistSummaryDTO struct {
|
||||
}
|
||||
|
||||
type DailyChecklistPerformanceOverviewDTO struct {
|
||||
EmployeeID uint `json:"employee_id"`
|
||||
EmployeeName string `json:"employee_name"`
|
||||
TotalActivity int `json:"total_activity"`
|
||||
ActivityDone int `json:"activity_done"`
|
||||
ActivityLeft int `json:"activity_left"`
|
||||
EmployeeID uint `json:"employee_id"`
|
||||
EmployeeName string `json:"employee_name"`
|
||||
Kandang DailyChecklistReportEntityDTO `json:"kandang"`
|
||||
TotalActivity int `json:"total_activity"`
|
||||
ActivityDone int `json:"activity_done"`
|
||||
ActivityLeft int `json:"activity_left"`
|
||||
}
|
||||
|
||||
type DailyChecklistReportDTO struct {
|
||||
|
||||
Reference in New Issue
Block a user