service.go 416 B

123456789101112131415161718192021222324
  1. package audit
  2. import (
  3. "go-common/app/interface/main/tv/conf"
  4. auditDao "go-common/app/interface/main/tv/dao/audit"
  5. "go-common/app/interface/main/tv/dao/cms"
  6. )
  7. // Service .
  8. type Service struct {
  9. conf *conf.Config
  10. auditDao *auditDao.Dao
  11. cmsDao *cms.Dao
  12. }
  13. // New .
  14. func New(c *conf.Config) *Service {
  15. srv := &Service{
  16. conf: c,
  17. auditDao: auditDao.New(c),
  18. cmsDao: cms.New(c),
  19. }
  20. return srv
  21. }