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,38 @@
package pay
import (
"context"
"go-common/app/interface/main/videoup/conf"
"go-common/library/database/elastic"
bm "go-common/library/net/http/blademaster"
)
// Dao str
type Dao struct {
c *conf.Config
client *bm.Client
assRegURI string
assURI string
es *elastic.Elastic
}
// New fn
func New(c *conf.Config) (d *Dao) {
d = &Dao{
c: c,
client: bm.NewClient(c.HTTPClient.Write),
assRegURI: c.Host.APICo + _assRegURI,
assURI: c.Host.APICo + _assURI,
es: elastic.NewElastic(&elastic.Config{
Host: c.Host.MainSearch,
HTTPClient: c.HTTPClient.Read,
}),
}
return d
}
// Ping fn
func (d *Dao) Ping(c context.Context) (err error) {
return
}