mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-08 05:58:29 -05:00
22 lines
302 B
Go
22 lines
302 B
Go
|
|
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
|
||
|
|
}
|