task_report.go 451 B

123456789101112131415161718
  1. package service
  2. import (
  3. "context"
  4. "time"
  5. "go-common/app/admin/main/videoup/model/archive"
  6. "go-common/library/log"
  7. )
  8. // TaskTooksByHalfHour get task books by ctime
  9. func (s *Service) TaskTooksByHalfHour(c context.Context, stime, etime time.Time) (tooks []*archive.TaskTook, err error) {
  10. if tooks, err = s.dao.TaskTooksByHalfHour(c, stime, etime); err != nil {
  11. log.Error("s.dao.TaskTooksByHalfHour(%v,%v)", stime, etime)
  12. return
  13. }
  14. return
  15. }