From 29154949dd656e39d6de393f07a44b035b92e3f6 Mon Sep 17 00:00:00 2001 From: sian Date: Tue, 21 Feb 2023 14:16:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/channel/sku.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/supply/channel/sku.go b/supply/channel/sku.go index 551335f..57ea7d7 100644 --- a/supply/channel/sku.go +++ b/supply/channel/sku.go @@ -11,6 +11,14 @@ import ( type sku struct { } +const ( + SkuOrderTypePrice = 1 // 价格排序 + SkuOrderTypeDiscount = 2 // 价格折扣 + + SkuOrderSortUp = 1 // 升序 + SkuOrderSortDown = 2 // 降序 +) + type SkuSearch struct { Status uint // 1=上架 2=下架 SkuName string // 商品名称 @@ -85,6 +93,9 @@ type SkuEsSearch struct { MaxGuidePrice decimal.Decimal // 市场参考价 Source uint // 所属供应商 ThirdCategoryIds []uint // 三级分类Ids + + OrderType uint // 排序类型 + OrderSort uint // 排序顺序 } type ArgsSkuListsEs struct { Search SkuEsSearch