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.
21 lines
353 B
21 lines
353 B
package playurl |
|
|
|
import ( |
|
"go-common/app/job/main/tv/conf" |
|
httpx "go-common/library/net/http/blademaster" |
|
) |
|
|
|
// Dao dao. |
|
type Dao struct { |
|
conf *conf.Config |
|
client *httpx.Client |
|
} |
|
|
|
// New create a instance of Dao and return. |
|
func New(c *conf.Config) (d *Dao) { |
|
d = &Dao{ |
|
conf: c, |
|
client: httpx.NewClient(conf.Conf.HTTPClient), |
|
} |
|
return |
|
}
|
|
|