dao.go 301 B

123456789101112131415161718192021
  1. package subtitle
  2. import (
  3. "go-common/app/interface/main/dm2/rpc/client"
  4. "go-common/app/interface/main/videoup/conf"
  5. )
  6. // Dao fn
  7. type Dao struct {
  8. c *conf.Config
  9. sub *client.Service
  10. }
  11. // New fn
  12. func New(c *conf.Config) (d *Dao) {
  13. d = &Dao{
  14. c: c,
  15. sub: client.New(c.SubRPC),
  16. }
  17. return
  18. }