adjust dto

This commit is contained in:
dpurbosakti
2025-10-09 06:32:09 +07:00
parent 47a8b34337
commit 76614abc32
29 changed files with 42 additions and 45 deletions
@@ -53,15 +53,12 @@ func ReadListData(input e.ReadListDto, event *pl.Event, dbx ...*gorm.DB) ([]e.Pr
}
}
tx = plh.SearchCodeOrName(input.Search, tx)
tx = plh.Sort(input.Sort, tx)
tx = tx.
tx = tx.Debug().
Model(&e.Province{}).
Scopes(gh.Filter(input.FilterDto)).
Count(&count).
Scopes(gh.Paginate(input, &pagination))
// Scopes(gh.Sort(input.Sort))
if err := tx.Find(&data).Error; err != nil {
if err == gorm.ErrRecordNotFound {