[fix]修改减少验证

This commit is contained in:
PandaX
2023-11-21 09:06:32 +08:00
parent ec0457d7d3
commit f5fbd10a87

View File

@@ -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)