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.
31 lines
520 B
31 lines
520 B
package extern |
|
|
|
import ( |
|
"go-common/app/service/main/antispam/conf" |
|
|
|
bm "go-common/library/net/http/blademaster" |
|
) |
|
|
|
type Client struct { |
|
*ReplyServiceClient |
|
} |
|
|
|
func NewClient(c *conf.Config) *Client { |
|
httpCli := bm.NewClient(c.HTTPClient) |
|
|
|
return &Client{ |
|
ReplyServiceClient: &ReplyServiceClient{ |
|
host: c.ReplyURL, |
|
commonClient: &commonClient{ |
|
httpCli: httpCli, |
|
key: c.App.Key, |
|
secret: c.App.Secret, |
|
}, |
|
}, |
|
} |
|
} |
|
|
|
type commonClient struct { |
|
httpCli *bm.Client |
|
key, secret string |
|
}
|
|
|