From d2a1182c669ab4867e47bd6b44b066f9ae3421c1 Mon Sep 17 00:00:00 2001 From: lzh <18320341470> Date: Fri, 4 Jul 2025 10:51:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=94=AF=E5=93=81=E5=B0=9Ask?= =?UTF-8?q?u=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go.mod | 4 +++- weipinshang/model.go | 26 +++++++++++++------------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/go.mod b/go.mod index 12a863b..3cf172c 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,8 @@ module git.ssgfgtfy.com/public/ssgf_utils -go 1.18.0 +go 1.23.0 + +toolchain go1.23.10 require ( github.com/alibabacloud-go/darabonba-openapi/v2 v2.1.7 diff --git a/weipinshang/model.go b/weipinshang/model.go index bf9121c..a0fea15 100644 --- a/weipinshang/model.go +++ b/weipinshang/model.go @@ -160,19 +160,19 @@ type GoodsItem struct { // 商品SKU信息 type GoodsSkuItem struct { - CFatherGoodsID string `json:"c_father_goods_id"` // 父级商品ID - CGoodsID string `json:"c_goods_id"` // 商品ID - CGoodsName string `json:"c_goods_name"` // 商品规格名称 - COriginalPrice string `json:"c_original_price"` // 商品市场价 - CInPrice string `json:"c_in_price"` // 商品进价 - CSalePrice string `json:"c_sale_price"` // 商品建议售价 - CGoodsColor string `json:"c_goods_color"` // 商品颜色 - CGoodsSize string `json:"c_goods_size"` // 商品尺寸 - CGoodsImage string `json:"c_goods_image"` // 商品列表图片 - CGoodsStockStart int `json:"c_goods_stock_start"` // 初始总库存 - CGoodsStockValid int `json:"c_goods_stock_valid"` // 有效库存(下单库存参考) - CBuyMinNum int `json:"c_buy_min_num"` // 最小购买数量 - CBuyMaxNum int `json:"c_buy_max_num"` // 最大购买数量 + CFatherGoodsID string `json:"c_father_goods_id"` // 父级商品ID + CGoodsID string `json:"c_goods_id"` // 商品ID + CGoodsName string `json:"c_goods_name"` // 商品规格名称 + COriginalPrice string `json:"c_original_price"` // 商品市场价 + CInPrice string `json:"c_in_price"` // 商品进价 + CSalePrice string `json:"c_sale_price"` // 商品建议售价 + CGoodsColor string `json:"c_goods_color"` // 商品颜色 + CGoodsSize string `json:"c_goods_size"` // 商品尺寸 + CGoodsImage string `json:"c_goods_image"` // 商品列表图片 + CGoodsStockStart interface{} `json:"c_goods_stock_start"` // 初始总库存 + CGoodsStockValid interface{} `json:"c_goods_stock_valid"` // 有效库存(下单库存参考) + CBuyMinNum interface{} `json:"c_buy_min_num"` // 最小购买数量 + CBuyMaxNum interface{} `json:"c_buy_max_num"` // 最大购买数量 } type GetGoodsDetailsReq struct {