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

22 lines
302 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package subtitle
import (
"go-common/app/interface/main/creative/conf"
"go-common/app/interface/main/dm2/rpc/client"
)
// Dao fn
type Dao struct {
c *conf.Config
sub *client.Service
}
// New fn
func New(c *conf.Config) (d *Dao) {
d = &Dao{
c: c,
sub: client.New(c.SubRPC),
}
return
}