1 Star 0 Fork 0

h79 / gothird

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
decrypt.go 827 Bytes
一键复制 编辑 原始数据 按行查看 历史
huqiuyun 提交于 2023-07-28 16:16 . 还是把 token 放在这里
package order
import (
"encoding/json"
"fmt"
"gitee.com/h79/gothird/fxg/consts"
"gitee.com/h79/gothird/fxg/params"
"gitee.com/h79/gothird/fxg/response"
"gitee.com/h79/gothird/token"
"gitee.com/h79/goutils/common/data"
"gitee.com/h79/goutils/common/http"
)
// BatchDecrypt
// order/batchDecrypt?
func BatchDecrypt(api *token.Api, d data.D) (interface{}, error) {
uri := fmt.Sprintf("%s/order/batchDecrypt?%s", consts.ApiPrefixUrl, params.UrlParams(api.AppId(), api.Secret(), "order.batchDecrypt", d))
type decResult struct {
response.Response
Data interface{} `json:"data,omitempty"`
}
res := decResult{}
er := api.Request("POST", uri, nil, func(hp *http.Http, body []byte) error {
if err := json.Unmarshal(body, &res); err != nil {
return err
}
return res.ReturnIf(api)
})
return res.Data, er
}
1
https://gitee.com/h79/gothird.git
git@gitee.com:h79/gothird.git
h79
gothird
gothird
v1.8.103

搜索帮助