You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
399 B

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)
}