com_base_page.go 407 B

1234567891011121314151617
  1. package services
  2. import (
  3. "app/commons/model/entity"
  4. "gorm.io/gorm"
  5. )
  6. // tips:
  7. // 分页查询表中数据
  8. func (s *CommonService) PageAssetBill(db *gorm.DB, pg *Pagination) ([]*entity.AssetBill, error) {
  9. return FindWithPage[entity.AssetBill](db, pg)
  10. }
  11. func (s *CommonService) PageUserQuota(db *gorm.DB, pg *Pagination) ([]*entity.UserQuota, error) {
  12. return FindWithPage[entity.UserQuota](db, pg)
  13. }