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.
 
 
 

31 lines
477 B

package service
import (
"context"
"go-common/app/interface/main/ugcpay-rank/internal/conf"
"go-common/app/interface/main/ugcpay-rank/internal/dao"
)
// Service struct
type Service struct {
dao *dao.Dao
}
// New init
func New(c *conf.Config) (s *Service) {
s = &Service{
dao: dao.New(),
}
return s
}
// Ping Service
func (s *Service) Ping(ctx context.Context) (err error) {
return s.dao.Ping(ctx)
}
// Close Service
func (s *Service) Close() {
s.dao.Close()
}