You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
351 B
17 lines
351 B
package stats
|
|
|
|
import (
|
|
"context"
|
|
"git.aiterp.net/stufflog3/stufflog3/entities"
|
|
"git.aiterp.net/stufflog3/stufflog3/usecases/scopes"
|
|
)
|
|
|
|
type Service struct {
|
|
Scopes *scopes.Service
|
|
|
|
Repository Repository
|
|
}
|
|
|
|
func (s *Service) List(ctx context.Context) ([]entities.Stat, error) {
|
|
return s.Repository.List(ctx, s.Scopes.ScopeFromContext(ctx).ID)
|
|
}
|