12345678910111213141516171819202122 |
- package history
- import (
- "go-common/app/interface/main/app-interface/conf"
- historydao "go-common/app/interface/main/app-interface/dao/history"
- livedao "go-common/app/interface/main/app-interface/dao/live"
- )
- // Service service struct
- type Service struct {
- historyDao *historydao.Dao
- liveDao *livedao.Dao
- }
- // New new service
- func New(c *conf.Config) (s *Service) {
- s = &Service{
- historyDao: historydao.New(c),
- liveDao: livedao.New(c),
- }
- return
- }
|