Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
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
}