service.go 562 B

123456789101112131415161718192021222324252627
  1. package growup
  2. import (
  3. "go-common/app/interface/main/creative/conf"
  4. "go-common/app/interface/main/creative/dao/archive"
  5. "go-common/app/interface/main/creative/dao/growup"
  6. "go-common/app/interface/main/creative/service"
  7. )
  8. //Service struct.
  9. type Service struct {
  10. c *conf.Config
  11. arc *archive.Dao
  12. growup *growup.Dao
  13. p *service.Public
  14. }
  15. //New get service.
  16. func New(c *conf.Config, rpcdaos *service.RPCDaos, p *service.Public) *Service {
  17. s := &Service{
  18. c: c,
  19. arc: rpcdaos.Arc,
  20. growup: growup.New(c),
  21. p: p,
  22. }
  23. return s
  24. }