From 3f1fb8181a80624ec3f77412040777892a462fdc Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期一, 30 十月 2023 19:42:05 +0800 Subject: [PATCH] 上架规则支持产品类别 --- request/location_product.go | 22 +++++++++++++--------- 1 files changed, 13 insertions(+), 9 deletions(-) diff --git a/request/location_product.go b/request/location_product.go index feccc4f..b0e3320 100644 --- a/request/location_product.go +++ b/request/location_product.go @@ -1,16 +1,20 @@ package request +import "wms/constvar" + type AddLocationProduct struct { - LocationId int `json:"locationId"` //浣嶇疆id - ProductId string `json:"productId"` //浜у搧id - ProductCategoryId int `json:"productCategoryId"` //浜у搧绉嶇被id - AreaId int `json:"areaId"` //鍖哄煙id + LocationId int `json:"locationId"` //浣嶇疆id + ProductId string `json:"productId"` //浜у搧id + ProductCategoryId int `json:"productCategoryId"` //浜у搧绉嶇被id + AreaId int `json:"areaId"` //鍖哄煙id + RuleType constvar.RuleType `json:"ruleType"` //涓婃灦瑙勫垯绫诲瀷 1锛氫骇鍝佺被鍨嬶紱2锛氫骇鍝佺被鍒被鍨� } type UpdateLocationProduct struct { - Id int `json:"id"` - LocationId int `json:"locationId"` //浣嶇疆id - ProductId string `json:"productId"` //浜у搧id - ProductCategoryId int `json:"productCategoryId"` //浜у搧绉嶇被id - AreaId int `json:"areaId"` //鍖哄煙id + Id int `json:"id"` + LocationId int `json:"locationId"` //浣嶇疆id + ProductId string `json:"productId"` //浜у搧id + ProductCategoryId int `json:"productCategoryId"` //浜у搧绉嶇被id + AreaId int `json:"areaId"` //鍖哄煙id + RuleType constvar.RuleType `json:"ruleType"` //涓婃灦瑙勫垯绫诲瀷 1锛氫骇鍝佺被鍨嬶紱2锛氫骇鍝佺被鍒被鍨� } -- Gitblit v1.8.0