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.
34 lines
772 B
34 lines
772 B
package danmu |
|
|
|
import ( |
|
"go-common/app/interface/main/creative/conf" |
|
"go-common/app/interface/main/creative/dao/account" |
|
"go-common/app/interface/main/creative/dao/archive" |
|
"go-common/app/interface/main/creative/dao/danmu" |
|
"go-common/app/interface/main/creative/dao/elec" |
|
"go-common/app/interface/main/creative/dao/subtitle" |
|
"go-common/app/interface/main/creative/service" |
|
) |
|
|
|
// Service danmu. |
|
type Service struct { |
|
c *conf.Config |
|
dm *danmu.Dao |
|
arc *archive.Dao |
|
acc *account.Dao |
|
sub *subtitle.Dao |
|
elec *elec.Dao |
|
} |
|
|
|
// New get danmu service. |
|
func New(c *conf.Config, rpcdaos *service.RPCDaos) *Service { |
|
s := &Service{ |
|
c: c, |
|
dm: danmu.New(c), |
|
acc: rpcdaos.Acc, |
|
arc: rpcdaos.Arc, |
|
sub: rpcdaos.Sub, |
|
elec: elec.New(c), |
|
} |
|
return s |
|
}
|
|
|