ConveyDevice.php 431 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. class ConveyDevice extends Validate{
  5. protected $rule = [
  6. 'title|标题' => 'require|length:1,200',
  7. 'patient|是否是pat病人运送' => 'require',
  8. ];
  9. protected $message = [
  10. 'title.length' => '名称必须200字以内',
  11. 'patient.require' => '请选择是否是pat病人运送',
  12. ];
  13. protected $scene = [
  14. ];
  15. }