biz.go 416 B

1234567891011121314151617
  1. package archive
  2. import (
  3. "context"
  4. "time"
  5. model "go-common/app/interface/main/creative/model/archive"
  6. "go-common/library/log"
  7. )
  8. // BIZsByTime list bizs by time and type
  9. func (s *Service) BIZsByTime(c context.Context, start, end *time.Time, tp int8) (bizs []*model.BIZ, err error) {
  10. if bizs, err = s.arc.BIZsByTime(c, start, end, tp); err != nil {
  11. log.Error("s.arc.BIZsByTime error(%+v)", err)
  12. }
  13. return
  14. }