23 lines
460 B
PHP
23 lines
460 B
PHP
<?php
|
||
/**
|
||
* @date :2023年03月16日
|
||
* @author:刘孝全
|
||
* @email:q8197264@126.com
|
||
*
|
||
* @ 商户分类参数验证
|
||
*/
|
||
namespace app\validate\merchant\admin;
|
||
|
||
|
||
use think\Validate;
|
||
|
||
class MerchantCategoryValidate extends Validate
|
||
{
|
||
protected $failException = true;
|
||
|
||
protected $rule = [
|
||
'category_name|分类名称' => 'require|max:32',
|
||
'commission_rate|手续费' => 'require|float|>=:0|<=:100'
|
||
];
|
||
}
|