go-common/app/interface/main/app-wall/service/ping/ping.go
2019-04-22 18:49:16 +08:00

25 lines
399 B
Go

package ping
import (
"context"
"go-common/app/interface/main/app-wall/conf"
walldao "go-common/app/interface/main/app-wall/dao/wall"
)
type Service struct {
wallDao *walldao.Dao
}
func New(c *conf.Config) (s *Service) {
s = &Service{
wallDao: walldao.New(c),
}
return
}
// Ping is check server ping.
func (s *Service) Ping(c context.Context) (err error) {
return s.wallDao.Ping(c)
}