From 8fb1d1a1389c5f981248b459257ceb1ac4e2b28d Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期二, 31 十月 2023 14:37:02 +0800 Subject: [PATCH] 出入库明细分页修改 --- request/product_request.go | 42 +++++++++++++++++++++++++++++++++++++++++- 1 files changed, 41 insertions(+), 1 deletions(-) diff --git a/request/product_request.go b/request/product_request.go index c4b8cae..c48f3c0 100644 --- a/request/product_request.go +++ b/request/product_request.go @@ -1,11 +1,51 @@ package request +import ( + "github.com/shopspring/decimal" + "wms/constvar" +) + type GetProductList struct { PageInfo - KeyWord string `json:"keyWord"` + KeyWord string `json:"keyWord"` + CategoryId int `json:"categoryId"` } type QueryOperationList struct { PageInfo ProductId string `json:"productId"` } + +type AddDisuse struct { + ProductId string `json:"productId"` + //ProductName string `json:"productName"` + Amount decimal.Decimal `json:"amount"` + FromLocationId int `json:"fromLocationId"` + ToLocationId int `json:"toLocationId"` + SourceNumber string `json:"sourceNumber"` + //Unit string `json:"unit"` +} + +type QueryDisuseList struct { + PageInfo + Number string `json:"number"` +} + +type UpdateDisuse struct { + Id int `json:"id"` + ProductId string `json:"productId"` + Amount decimal.Decimal `json:"amount"` + FromLocationId int `json:"fromLocationId"` + ToLocationId int `json:"toLocationId"` + SourceNumber string `json:"sourceNumber"` + Number string `json:"number"` + Status constvar.OperationStatus `json:"status"` + OperationDate string `json:"operationDate"` + BaseOperationType constvar.BaseOperationType `json:"baseOperationType"` +} + +type QueryOperationHistory struct { + PageInfo + ProductId string `json:"productId"` + LocationId int `json:"locationId"` +} -- Gitblit v1.8.0