init commit
This commit is contained in:
31
application/admin/validate/wdsxh/points/Goods.php
Normal file
31
application/admin/validate/wdsxh/points/Goods.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\validate\wdsxh\points;
|
||||
|
||||
use think\Validate;
|
||||
|
||||
class Goods extends Validate
|
||||
{
|
||||
/**
|
||||
* 验证规则
|
||||
*/
|
||||
protected $rule = [
|
||||
'points' => 'require|number|gt:0',
|
||||
];
|
||||
/**
|
||||
* 提示消息
|
||||
*/
|
||||
protected $message = [
|
||||
'points.require' => '积分不能为空',
|
||||
'points.number' => '积分必须是数字',
|
||||
'points.gt' => '积分必须大于0',
|
||||
];
|
||||
/**
|
||||
* 验证场景
|
||||
*/
|
||||
protected $scene = [
|
||||
'add' => ['points'],
|
||||
'edit' => ['points'],
|
||||
];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user