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

22 lines
301 B
Go

package subtitle
import (
"go-common/app/interface/main/dm2/rpc/client"
"go-common/app/interface/main/videoup/conf"
)
// 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
}