From f5fbd10a87494f53a1fdee9e4c4c21dbf1e13a3c Mon Sep 17 00:00:00 2001 From: PandaX <18610165312@163.com> Date: Tue, 21 Nov 2023 09:06:32 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=E4=BF=AE=E6=94=B9=E5=87=8F=E5=B0=91?= =?UTF-8?q?=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/device/api/product.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/device/api/product.go b/apps/device/api/product.go index a2ebbc4..07a2f24 100644 --- a/apps/device/api/product.go +++ b/apps/device/api/product.go @@ -116,6 +116,13 @@ func (p *ProductApi) InsertProduct(rc *restfulx.ReqCtx) { // UpdateProduct 修改Product func (p *ProductApi) UpdateProduct(rc *restfulx.ReqCtx) { + var data entity.Product + restfulx.BindQuery(rc, &data) + + p.ProductApp.Update(data) +} + +func (p *ProductApi) UpdateProductStatue(rc *restfulx.ReqCtx) { var data entity.Product restfulx.BindJsonAndValid(rc, &data)