0
0

CleanTask.php 413 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. class CleanTask extends Validate{
  5. protected $rule = [
  6. 'title|名称' => 'require|length:1,200',
  7. 'start_time|任务开始时间' => 'require',
  8. 'end_time|任务结束时间' => 'require',
  9. ];
  10. protected $message = [
  11. 'title.length' => '名称必须200字以内',
  12. ];
  13. protected $scene = [
  14. ];
  15. }