From 254fe5c1f9e54ea33269a39c9c25f66c4d27e6d5 Mon Sep 17 00:00:00 2001 From: lishihai <dslsh@dscom> Date: 星期四, 13 六月 2024 15:26:42 +0800 Subject: [PATCH] 概述(一级模块)-入库(二级模块)-新建操作(含出入库,内部调拨)的人可以删除自己创建的,不能删除别人创建的:删除时验证创建人 --- request/location_product_amount.go | 23 +++++++++++++++-------- 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/request/location_product_amount.go b/request/location_product_amount.go index be4ca87..9b1a386 100644 --- a/request/location_product_amount.go +++ b/request/location_product_amount.go @@ -4,21 +4,28 @@ "github.com/shopspring/decimal" ) +type GetList struct { + PageInfo + Keyword string `json:"keyword"` +} + type AddLocationProductAmount struct { - LocationId int `json:"locationId"` - ProductId string `json:"productId"` - Amount decimal.Decimal `json:"Amount"` //搴撳瓨鏁伴噺 AdjustAmount decimal.Decimal `json:"adjustAmount" ` //宸�� DifferenceAmount decimal.Decimal `json:"differenceAmount"` //璁℃暟鏁伴噺 + Amount decimal.Decimal `json:"Amount"` //搴撳瓨鏁伴噺 + ProductId string `json:"productId"` + LocationId int `json:"locationId"` } type UpdateLocationProductAmount struct { //LocationProductAmountId int `json:"locationProductAmountId"` //搴撳瓨鐩樼偣id - AdjustAmount decimal.Decimal `json:"adjustAmount" ` //宸�� - DifferenceAmount decimal.Decimal `json:"differenceAmount"` //璁℃暟鏁伴噺 - OperationId int `json:"operationId"` //鍑哄叆搴搃d - Amount decimal.Decimal `json:"Amount"` //搴撳瓨鏁伴噺 - ProductId string `json:"productId"` //浜у搧id + AdjustAmount decimal.Decimal `json:"adjustAmount" ` //宸�� + DifferenceAmount decimal.Decimal `json:"differenceAmount"` //璁℃暟鏁伴噺 + Amount decimal.Decimal `json:"amount"` //搴撳瓨鏁伴噺 + ProductId string `json:"productId"` //浜у搧id + OperationId int `json:"operationId"` //鍑哄叆搴搃d + LocationId int `json:"locationId"` //浣嶇疆id + ProductCategoryId int `json:"productCategoryId"` //浜у搧绉嶇被id } type GetRuleList struct { -- Gitblit v1.8.0