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.
 
 
 

31 lines
703 B

package assist
import (
"go-common/app/interface/main/creative/conf"
"go-common/app/interface/main/creative/dao/account"
"go-common/app/interface/main/creative/dao/assist"
"go-common/app/interface/main/creative/dao/danmu"
"go-common/app/interface/main/creative/dao/reply"
"go-common/app/interface/main/creative/service"
)
// Service assist.
type Service struct {
c *conf.Config
assist *assist.Dao
reply *reply.Dao
dm *danmu.Dao
acc *account.Dao
}
// New get assist service.
func New(c *conf.Config, rpcdaos *service.RPCDaos) *Service {
s := &Service{
c: c,
assist: assist.New(c),
reply: reply.New(c),
dm: danmu.New(c),
acc: rpcdaos.Acc,
}
return s
}