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.
 
 
 

23 lines
369 B

package ping
import (
"context"
"go-common/app/interface/main/app-resource/conf"
pgdao "go-common/app/interface/main/app-resource/dao/plugin"
)
type Service struct {
pgDao *pgdao.Dao
}
func New(c *conf.Config) (s *Service) {
s = &Service{
pgDao: pgdao.New(c),
}
return
}
func (s *Service) Ping(c context.Context) (err error) {
return s.pgDao.PingDB(c)
}