2026-05-02 13:02:38 +08:00

16 lines
348 B
Go

package dashboard
import "hyapp-admin-server/internal/repository"
type DashboardService struct {
store *repository.Store
}
func NewService(store *repository.Store) *DashboardService {
return &DashboardService{store: store}
}
func (s *DashboardService) Overview() (*repository.DashboardOverview, error) {
return s.store.DashboardOverview()
}