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.
27 lines
486 B
27 lines
486 B
5 years ago
|
package recook
|
||
|
|
||
|
import (
|
||
|
"net/url"
|
||
|
"strconv"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
actionHistory = "/live/order/history"
|
||
|
)
|
||
|
|
||
|
type order struct {
|
||
|
}
|
||
|
|
||
|
// @Title 获取会员购买历史商品
|
||
|
func (o *order) GetHistoryGoods(id uint, token string) (result *[]GoodsInfo, err error) {
|
||
|
result = &[]GoodsInfo{}
|
||
|
err = RecookClient.Exec(actionHistory, url.Values{}, result, map[string]string{
|
||
|
"X-Recook-ID": strconv.FormatUint(uint64(id), 10),
|
||
|
"X-Recook-Token": token,
|
||
|
})
|
||
|
if err != nil {
|
||
|
return
|
||
|
}
|
||
|
return
|
||
|
}
|