25 lines
399 B
Go
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)
|
||
|
}
|