0
0

ConveyCate.php 395 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. class ConveyCate extends Validate{
  5. protected $rule = [
  6. 'title|名称' => 'require|length:1,200',
  7. 'time_id|时间代码' => 'require',
  8. 'cate|运送对象' => 'require',
  9. ];
  10. protected $message = [
  11. 'title.length' => '名称必须200字以内',
  12. ];
  13. protected $scene = [
  14. ];
  15. }