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.
 
 
 

28 lines
458 B

package ping
import (
"context"
"go-common/app/interface/main/app-show/conf"
showdao "go-common/app/interface/main/app-show/dao/show"
)
type Service struct {
showDao *showdao.Dao
// bnDao *bndao.Dao
}
func New(c *conf.Config) (s *Service) {
s = &Service{
showDao: showdao.New(c),
}
return
}
// Ping is check server ping.
func (s *Service) Ping(c context.Context) (err error) {
if err = s.showDao.Ping(c); err != nil {
return
}
return
}