2019-04-22 02:59:20 +00:00

23 lines
466 B
Go

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
}