12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace app\common\validate;
- use think\Validate;
- /**
-
- *
-
- *
- * ----------------------------------------------------------------------------
- *
-
- * 验证器
- */
- class Sellergoodsadd extends Validate
- {
- protected $rule = [
- 'goods_name' => 'require',
- 'goods_price' => 'require',
- ];
- protected $message = [
- 'goods_name.require' => '商品名称不能为空',
- 'goods_price.require' => '商品价格不能为空',
- ];
- protected $scene = [
- 'save_goods' => ['goods_name', 'goods_price'],
- ];
- }
|