Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
package dao
import (
"context"
"go-common/app/interface/main/ugcpay-rank/internal/conf"
ugcpay_rank "go-common/app/service/main/ugcpay-rank/api/v1"
)
// Dao dao
type Dao struct {
ugcPayRankAPI ugcpay_rank.UGCPayRankClient
}
// New init mysql db
func New() (dao *Dao) {
dao = &Dao{}
var err error
if dao.ugcPayRankAPI, err = ugcpay_rank.NewClient(conf.Conf.UGCPayRankGRPC); err != nil {
panic(err)
}
return
}
// Close close the resource.
func (d *Dao) Close() {
}
// Ping dao ping
func (d *Dao) Ping(ctx context.Context) error {
return nil
}