ping.go 399 B

123456789101112131415161718192021222324
  1. package ping
  2. import (
  3. "context"
  4. "go-common/app/interface/main/app-wall/conf"
  5. walldao "go-common/app/interface/main/app-wall/dao/wall"
  6. )
  7. type Service struct {
  8. wallDao *walldao.Dao
  9. }
  10. func New(c *conf.Config) (s *Service) {
  11. s = &Service{
  12. wallDao: walldao.New(c),
  13. }
  14. return
  15. }
  16. // Ping is check server ping.
  17. func (s *Service) Ping(c context.Context) (err error) {
  18. return s.wallDao.Ping(c)
  19. }