service.go 466 B

12345678910111213141516171819202122
  1. package history
  2. import (
  3. "go-common/app/interface/main/app-interface/conf"
  4. historydao "go-common/app/interface/main/app-interface/dao/history"
  5. livedao "go-common/app/interface/main/app-interface/dao/live"
  6. )
  7. // Service service struct
  8. type Service struct {
  9. historyDao *historydao.Dao
  10. liveDao *livedao.Dao
  11. }
  12. // New new service
  13. func New(c *conf.Config) (s *Service) {
  14. s = &Service{
  15. historyDao: historydao.New(c),
  16. liveDao: livedao.New(c),
  17. }
  18. return
  19. }