美团力荐
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package mtwmapi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
)
|
||||
|
||||
@@ -67,3 +68,28 @@ func (a *API) GetDistributeOrderDetail(orderID, poiCode string) (distributeOrder
|
||||
err = utils.Map2StructByJson(result[orderID], &distributeOrderDetail, true)
|
||||
return distributeOrderDetail, err
|
||||
}
|
||||
|
||||
type RecommendSkuGet struct {
|
||||
WmPoiId int64 `json:"wmPoiId"` // 平台门店id
|
||||
PageNum int64 `json:"pageNum"` // 页数
|
||||
PageSize int64 `json:"pageSize"` // 页码
|
||||
NeedTag int64 `json:"needTag"`
|
||||
Name string `json:"name"`
|
||||
BrandId int64 `json:"brandId"`
|
||||
TagId int64 `json:"tagId"`
|
||||
SearchWord string `json:"searchWord"`
|
||||
State int64 `json:"state"`
|
||||
LabelIds int64 `json:"labelIds"`
|
||||
SaleStatus int64 `json:"saleStatus"`
|
||||
LimitSale int64 `json:"limitSale"`
|
||||
NeedCombinationSpu int64 `json:"needCombinationSpu"`
|
||||
NoStockAutoClear int64 `json:"noStockAutoClear"`
|
||||
MedicareType int64 `json:"medicareType"`
|
||||
}
|
||||
|
||||
// GetRecommendSku 获取美团力荐商品
|
||||
func (a *API) GetRecommendSku(params *RecommendSkuGet, cookie string) {
|
||||
result, err2 := a.AccessUserPage2("reuse/sc/product/retail/r/searchListPage", utils.Struct2MapByJson(params), true)
|
||||
fmt.Println(result)
|
||||
fmt.Println(err2)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user