From 2a7cf7e36452f976783629da15230c4cf3a28e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 22 Oct 2025 11:49:25 +0800 Subject: [PATCH] 1 --- platformapi/mtwmapi/callback.go | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/platformapi/mtwmapi/callback.go b/platformapi/mtwmapi/callback.go index 85f1a682..318a54e3 100644 --- a/platformapi/mtwmapi/callback.go +++ b/platformapi/mtwmapi/callback.go @@ -192,3 +192,38 @@ func (a *API) GetIMCallbackMsg(request *http.Request) (msg *ImCallbackMsg, callb } 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"` +}