PatrolAddrForm.php 406 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. class PatrolAddrForm extends Validate{
  5. protected $rule = [
  6. 'title|名称' => 'require|length:1,200',
  7. // 'patrol_addr_id|地点' => 'require',
  8. 'patrol_form|检查项' => 'require',
  9. ];
  10. protected $message = [
  11. 'title.length' => '名称必须200字以内',
  12. ];
  13. protected $scene = [
  14. ];
  15. }