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.
27 lines
491 B
27 lines
491 B
package history |
|
|
|
import ( |
|
"go-common/app/interface/main/tv/conf" |
|
"go-common/app/interface/main/tv/dao/archive" |
|
"go-common/app/interface/main/tv/dao/cms" |
|
"go-common/app/interface/main/tv/dao/history" |
|
) |
|
|
|
// Service . |
|
type Service struct { |
|
conf *conf.Config |
|
dao *history.Dao |
|
cmsDao *cms.Dao |
|
arcDao *archive.Dao |
|
} |
|
|
|
// New . |
|
func New(c *conf.Config) *Service { |
|
srv := &Service{ |
|
conf: c, |
|
dao: history.New(c), |
|
cmsDao: cms.New(c), |
|
arcDao: archive.New(c), |
|
} |
|
return srv |
|
}
|
|
|