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.
 
 
 

22 lines
378 B

package account
import (
"go-common/app/interface/main/tv/conf"
accwar "go-common/app/service/main/account/api"
)
// Dao is account dao.
type Dao struct {
// rpc
accClient accwar.AccountClient
}
// New account dao.
func New(c *conf.Config) (d *Dao) {
d = &Dao{}
var err error
if d.accClient, err = accwar.NewClient(c.AccClient); err != nil {
panic(err)
}
return
}