service.go 284 B

123456789101112131415161718
  1. package external
  2. import (
  3. "go-common/app/interface/main/app-feed/conf"
  4. "go-common/app/interface/main/app-feed/dao/dynamic"
  5. )
  6. // Service .
  7. type Service struct {
  8. dynamic *dynamic.Dao
  9. }
  10. // New .
  11. func New(c *conf.Config) *Service {
  12. return &Service{
  13. dynamic: dynamic.New(c),
  14. }
  15. }