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
562 B
27 lines
562 B
package growup |
|
|
|
import ( |
|
"go-common/app/interface/main/creative/conf" |
|
"go-common/app/interface/main/creative/dao/archive" |
|
"go-common/app/interface/main/creative/dao/growup" |
|
"go-common/app/interface/main/creative/service" |
|
) |
|
|
|
//Service struct. |
|
type Service struct { |
|
c *conf.Config |
|
arc *archive.Dao |
|
growup *growup.Dao |
|
p *service.Public |
|
} |
|
|
|
//New get service. |
|
func New(c *conf.Config, rpcdaos *service.RPCDaos, p *service.Public) *Service { |
|
s := &Service{ |
|
c: c, |
|
arc: rpcdaos.Arc, |
|
growup: growup.New(c), |
|
p: p, |
|
} |
|
return s |
|
}
|
|
|