linuxeaWe can reduce the amount of struct by using higher function like this:func pageFun(page, limit uint) func(*gorm.DB) *gorm.DB {Jan 20, 20221Jan 20, 20221