banner.go 249 B

12345678910111213
  1. package service
  2. import (
  3. "context"
  4. "time"
  5. "go-common/app/interface/main/growup/model"
  6. )
  7. // GetBanner get banner for now
  8. func (s *Service) GetBanner(c context.Context) (b *model.Banner, err error) {
  9. return s.dao.Banner(c, time.Now().Unix())
  10. }