service.go 316 B

12345678910111213141516171819
  1. package popular
  2. import (
  3. "go-common/app/admin/main/feed/conf"
  4. showdao "go-common/app/admin/main/feed/dao/show"
  5. )
  6. // Service is search service
  7. type Service struct {
  8. showDao *showdao.Dao
  9. }
  10. // New new a search service
  11. func New(c *conf.Config) (s *Service) {
  12. s = &Service{
  13. showDao: showdao.New(c),
  14. }
  15. return
  16. }