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
431 B
24 lines
431 B
package pgc |
|
|
|
import ( |
|
"go-common/app/interface/main/tv/conf" |
|
"go-common/library/cache/memcache" |
|
bm "go-common/library/net/http/blademaster" |
|
) |
|
|
|
// Dao is account dao. |
|
type Dao struct { |
|
conf *conf.Config |
|
client *bm.Client |
|
mc *memcache.Pool |
|
} |
|
|
|
// New account dao. |
|
func New(c *conf.Config) (d *Dao) { |
|
d = &Dao{ |
|
conf: c, |
|
client: bm.NewClient(c.HTTPClient), |
|
mc: memcache.NewPool(c.Memcache.Config), |
|
} |
|
return |
|
}
|
|
|