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