service.go 345 B

1234567891011121314151617181920
  1. package display
  2. import (
  3. "go-common/app/interface/main/app-interface/conf"
  4. locdao "go-common/app/interface/main/app-interface/dao/location"
  5. )
  6. // Service is zone service.
  7. type Service struct {
  8. // ip
  9. loc *locdao.Dao
  10. }
  11. // New initial display service.
  12. func New(c *conf.Config) (s *Service) {
  13. s = &Service{
  14. loc: locdao.New(c),
  15. }
  16. return
  17. }