// +---------------------------------------------------------------------- namespace app\validate\admin; use think\Validate; class UserGroupValidate extends Validate { protected $failException = true; protected $rule = [ 'group_name|分组名称' => 'require|max:32', 'order_count|分组名称' => 'require', 'order_sum|分组名称' => 'require', 'diamond|分组名称' => 'require', 'diamond_max|分组名称' => 'require', 'rate|分组名称' => 'require', ]; }