- serveral store apis for ebai.
This commit is contained in:
@@ -25,10 +25,11 @@ type ResponseResult struct {
|
||||
}
|
||||
|
||||
type API struct {
|
||||
source string
|
||||
secret string
|
||||
client *http.Client
|
||||
config *platformapi.APIConfig
|
||||
source string
|
||||
secret string
|
||||
encrypt string
|
||||
client *http.Client
|
||||
config *platformapi.APIConfig
|
||||
}
|
||||
|
||||
func New(source, secret string, config ...*platformapi.APIConfig) *API {
|
||||
@@ -72,6 +73,7 @@ func (a *API) AccessAPI(cmd string, body map[string]interface{}) (retVal *Respon
|
||||
"source": []string{a.source},
|
||||
"body": []string{string(utils.MustMarshal(body))},
|
||||
"secret": []string{a.secret},
|
||||
"encrypt": []string{a.encrypt},
|
||||
}
|
||||
params[signKey] = []string{a.signParams(params)}
|
||||
encodedParams := params.Encode()
|
||||
|
||||
Reference in New Issue
Block a user