mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-30 05:11:25 +08:00
[fix]修改减少验证
This commit is contained in:
@@ -116,6 +116,13 @@ func (p *ProductApi) InsertProduct(rc *restfulx.ReqCtx) {
|
|||||||
|
|
||||||
// UpdateProduct 修改Product
|
// UpdateProduct 修改Product
|
||||||
func (p *ProductApi) UpdateProduct(rc *restfulx.ReqCtx) {
|
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
|
var data entity.Product
|
||||||
restfulx.BindJsonAndValid(rc, &data)
|
restfulx.BindJsonAndValid(rc, &data)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user