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
668 B
31 lines
668 B
package article |
|
|
|
import ( |
|
"go-common/app/interface/main/creative/conf" |
|
"go-common/app/interface/main/creative/dao/account" |
|
"go-common/app/interface/main/creative/dao/activity" |
|
"go-common/app/interface/main/creative/dao/article" |
|
"go-common/app/interface/main/creative/dao/bfs" |
|
"go-common/app/interface/main/creative/service" |
|
) |
|
|
|
//Service struct. |
|
type Service struct { |
|
c *conf.Config |
|
art *article.Dao |
|
acc *account.Dao |
|
bfs *bfs.Dao |
|
act *activity.Dao |
|
} |
|
|
|
//New get service. |
|
func New(c *conf.Config, rpcdaos *service.RPCDaos) *Service { |
|
s := &Service{ |
|
c: c, |
|
art: rpcdaos.Art, |
|
acc: rpcdaos.Acc, |
|
bfs: bfs.New(c), |
|
act: activity.New(c), |
|
} |
|
return s |
|
}
|
|
|