12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace app\common\validate;
- use think\Validate;
- use think\Db;
- class House extends Validate{
- protected $rule = [
- 'floor_id' => 'require|gt:0',
- 'cate_id' => 'require|gt:0',
- 'company_id' => 'require|gt:0',
- 'right_id' => 'require|gt:0',
- 'level_id|承租方式' => 'require',
- ];
- protected $scene = [
- 'floor_id.require' => '未选择楼层',
- 'floor_id.gt' => '未选择楼层',
- 'cate_id.require' => '未选择类别',
- 'cate_id.gt' => '未选择类别',
- 'company_id.require' => '未选择物业管理单位',
- 'company_id.gt' => '未选择物业管理单位',
- 'right_id.require' => '未选择产权',
- 'right_id.gt' => '未选择产权',
- 'level_id.require' => '未选择承租方式',
- 'level_id.gt' => '未选择承租方式',
- ];
- }
|