You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
466 B
22 lines
466 B
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 |
|
}
|
|
|