go-common/app/interface/main/creative/dao/article/dao.go
2019-04-22 18:49:16 +08:00

25 lines
374 B
Go

package article
import (
"go-common/app/interface/main/creative/conf"
article "go-common/app/interface/openplatform/article/rpc/client"
)
// Dao is archive dao.
type Dao struct {
// config
c *conf.Config
// rpc
art *article.Service
}
// New init api url
func New(c *conf.Config) (d *Dao) {
d = &Dao{
c: c,
// rpc
art: article.New(c.ArticleRPC),
}
return
}