package services import ( "app/commons/model/entity" "gorm.io/gorm" ) // tips: // 分页查询表中数据 func (s *CommonService) PageAssetBill(db *gorm.DB, pg *Pagination) ([]*entity.AssetBill, error) { return FindWithPage[entity.AssetBill](db, pg) } func (s *CommonService) PageUserQuota(db *gorm.DB, pg *Pagination) ([]*entity.UserQuota, error) { return FindWithPage[entity.UserQuota](db, pg) }