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
352 B
21 lines
352 B
package kfc |
|
|
|
import ( |
|
"go-common/app/job/main/activity/conf" |
|
"go-common/library/net/http/blademaster" |
|
) |
|
|
|
// Dao . |
|
type Dao struct { |
|
httpClient *blademaster.Client |
|
kfcDelURL string |
|
} |
|
|
|
// New init |
|
func New(c *conf.Config) (d *Dao) { |
|
d = &Dao{ |
|
httpClient: blademaster.NewClient(c.HTTPClient), |
|
kfcDelURL: c.Host.APICo + _kfcDelURI, |
|
} |
|
return |
|
}
|
|
|