mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
[fix]修改减少验证
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user