16 lines
348 B
Go
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()
|
|
}
|