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.
|
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 |
|
}
|
|
|