14 lines
317 B
Go
14 lines
317 B
Go
package logic
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
)
|
|
|
|
func (s *Service) ListHits(ctx context.Context, userID int64, category int, since, until *time.Time, page, size int) ([]HitRecord, int64, error) {
|
|
if !s.Ready() {
|
|
return nil, 0, ErrNotReady
|
|
}
|
|
return s.repo.ListHits(ctx, userID, category, since, until, page, size)
|
|
}
|