stats.go 445 B

1234567891011121314151617
  1. package service
  2. import (
  3. "context"
  4. "go-common/app/admin/main/videoup/model/archive"
  5. "go-common/library/log"
  6. "time"
  7. )
  8. // StatsPoints get stats point
  9. func (s *Service) StatsPoints(c context.Context, stime, etime time.Time, typeInt int8) (points []*archive.StatsPoint, err error) {
  10. if points, err = s.arc.StatsPoints(c, stime, etime, typeInt); err != nil {
  11. log.Error("s.arc.TaskTooksByHalfHour(%v,%v)", stime, etime)
  12. return
  13. }
  14. return
  15. }