liujiandao
2023-10-21 70e86bec4055bdc2fdbff8e1aa8e8bc41c32b2f0
controllers/product_controller.go
@@ -38,10 +38,6 @@
      util.ResponseFormat(c, code.RequestParamError, "产品名称不能为空")
      return
   }
   if params.SalePrice.IntPart() <= 0 {
      util.ResponseFormat(c, code.RequestParamError, "产品售价不能小于等于零")
      return
   }
   if params.Model == "" {
      util.ResponseFormat(c, code.RequestParamError, "物料类型不能为空")
      return
@@ -137,10 +133,6 @@
   }
   if params.Name == "" {
      util.ResponseFormat(c, code.RequestParamError, "产品名称不能为空")
      return
   }
   if params.SalePrice.IntPart() <= 0 {
      util.ResponseFormat(c, code.RequestParamError, "产品售价不能小于等于零")
      return
   }
   if params.Model == "" {