ConveyCate.php 440 B

1234567891011121314151617181920212223
  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. 'score|运送积分' => 'require',
  10. ];
  11. protected $message = [
  12. 'title.length' => '名称必须200字以内',
  13. ];
  14. protected $scene = [
  15. ];
  16. }