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.
24 lines
395 B
24 lines
395 B
package coin |
|
|
|
import ( |
|
"go-common/app/interface/main/creative/conf" |
|
coinclient "go-common/app/service/main/coin/api" |
|
) |
|
|
|
// Dao str |
|
type Dao struct { |
|
c *conf.Config |
|
coinClient coinclient.CoinClient |
|
} |
|
|
|
// New fn |
|
func New(c *conf.Config) (d *Dao) { |
|
d = &Dao{ |
|
c: c, |
|
} |
|
var err error |
|
if d.coinClient, err = coinclient.NewClient(c.CoinClient); err != nil { |
|
panic(err) |
|
} |
|
return |
|
}
|
|
|