1234567891011121314151617181920212223 |
- <?php
- namespace app\common\validate;
- use think\Validate;
- class DeviceForm extends Validate{
- protected $rule = [
- 'title|标题' => 'require|length:1,200',
- 'cate_id|分类' => 'require|gt:0',
- ];
- protected $message = [
- 'title.length' => '名称必须200字以内',
- 'cate_id.require' => '分类不能为空',
- 'cate_id.gt' => '分类不能为空',
- ];
- protected $scene = [
- ];
- }
|