1
This commit is contained in:
@@ -192,3 +192,38 @@ func (a *API) GetIMCallbackMsg(request *http.Request) (msg *ImCallbackMsg, callb
|
|||||||
}
|
}
|
||||||
return msg, callbackResponse
|
return msg, callbackResponse
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 平台修改商品消息通知(目前只接收上下架状态)
|
||||||
|
type VendorUpdateSkuCallback struct {
|
||||||
|
AppFoodCode string `json:"app_food_code"`
|
||||||
|
AppId int `json:"app_id"`
|
||||||
|
AppPoiCode string `json:"app_poi_code"`
|
||||||
|
AppSpuCode string `json:"app_spu_code"`
|
||||||
|
CategoryName string `json:"categoryName"`
|
||||||
|
Ctime int `json:"ctime"`
|
||||||
|
DiffContents struct {
|
||||||
|
Skus []struct {
|
||||||
|
Desc string `json:"desc"`
|
||||||
|
DiffContentMap struct {
|
||||||
|
SkuIsSoldOut struct {
|
||||||
|
Result int `json:"result"`
|
||||||
|
Origin int `json:"origin"`
|
||||||
|
} `json:"sku_is_sold_out"`
|
||||||
|
} `json:"diffContentMap"`
|
||||||
|
Id string `json:"id"`
|
||||||
|
OpType int `json:"opType"`
|
||||||
|
OtherExtend struct {
|
||||||
|
} `json:"otherExtend"`
|
||||||
|
} `json:"skus"`
|
||||||
|
IsSoldOut struct {
|
||||||
|
Result int `json:"result"`
|
||||||
|
Origin int `json:"origin"`
|
||||||
|
} `json:"is_sold_out"`
|
||||||
|
} `json:"diffContents"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
OpAppKey string `json:"opAppKey"`
|
||||||
|
OpName string `json:"opName"`
|
||||||
|
OpReason string `json:"opReason"`
|
||||||
|
Timestamp int `json:"timestamp"`
|
||||||
|
Utime int `json:"utime"`
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user