go-common/app/interface/main/creative/dao/article/dao.go

25 lines
374 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
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
}