service.go 340 B

123456789101112131415161718192021
  1. package wechat
  2. import (
  3. "go-common/app/interface/main/web-goblin/conf"
  4. "go-common/app/interface/main/web-goblin/dao/wechat"
  5. )
  6. // Service struct .
  7. type Service struct {
  8. c *conf.Config
  9. dao *wechat.Dao
  10. }
  11. // New init wechat service.
  12. func New(c *conf.Config) (s *Service) {
  13. s = &Service{
  14. c: c,
  15. dao: wechat.New(c),
  16. }
  17. return s
  18. }