fix pagination, filter to show only have children data on division

This commit is contained in:
dpurbosakti
2025-10-03 17:13:53 +07:00
parent 26357e88e9
commit bd6351e3a3
144 changed files with 759 additions and 845 deletions
@@ -129,12 +129,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
return &d.Data{
Meta: d.IS{
"source": source,
"structure": "list-data",
"status": "fetched",
"page_number": strconv.Itoa(metaList.PageNumber),
"page_size": strconv.Itoa(metaList.PageSize),
"record_totalCount": strconv.Itoa(metaList.Count),
"source": source,
"structure": "list-data",
"status": "fetched",
"page_number": strconv.Itoa(metaList.PageNumber),
"page_size": strconv.Itoa(metaList.PageSize),
"record_totalCount": strconv.Itoa(metaList.Count),
"record_currentCount": strconv.Itoa(len(dataList)),
},
Data: e.ToResponseList(dataList),
}, nil