package services import ( "app/commons/model/entity" "gorm.io/gorm" ) // 查询表中所有数据 --未分批 用于查询已知数据量有限的表 func (s *CommonService) AllCoins(db *gorm.DB) ([]*entity.SysCoin, error) { return Find[entity.SysCoin](db) } func (s *CommonService) AllSysLevelConfig(db *gorm.DB) ([]*entity.SysLevelConfig, error) { return Find[entity.SysLevelConfig](db) } func (s *CommonService) AllAssets(db *gorm.DB) ([]*entity.Asset, error) { return Find[entity.Asset](db) } func (s *CommonService) AllUserQuota(db *gorm.DB) ([]*entity.UserQuota, error) { return Find[entity.UserQuota](db) }