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
374 B

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
}