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 == "" {