Base.php 787 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace app\validate;
  3. use think\Validate;
  4. class Base extends Validate
  5. {
  6. protected $rule = [
  7. 'qydm' => 'require',
  8. 'base_name' => 'require',
  9. 'county' => 'require',
  10. 'towns' => 'require',
  11. 'village' => 'require',
  12. 'country' => 'require',
  13. 'lnt' => 'require',
  14. 'lat' => 'require',
  15. ];
  16. protected $message = [
  17. 'qydm' => '企业代码不能为空',
  18. 'base_name' => '基地名称不能为空',
  19. 'county' => '基地所在县不能为空',
  20. 'towns' => '基地所在乡镇不能为空',
  21. 'village' => '基地所在村不能为空',
  22. 'lnt' => '基地经度不能为空',
  23. 'lat' => '基地纬度不能为空',
  24. ];
  25. }