go-common/app/interface/main/app-wall/service/ping/ping.go

25 lines
399 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
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)
}