Enterprises.php 861 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\validate;
  3. class Enterprises extends \think\Validate
  4. {
  5. protected $rule = [
  6. 'fzr_name' => 'require',
  7. 'fzr_id_number' => 'require',
  8. 'entity_type' => 'require',
  9. 'enterprises_type' => 'require',
  10. 'city' => 'require',
  11. 'country' => 'require',
  12. 'towns' => 'require',
  13. ];
  14. protected $message = [
  15. 'fzr_name.require' => '负责人姓名不能为空',
  16. 'fzr_id_number.require' => '负责人身份证不能为空',
  17. 'entity_type.require' => '主体类型不能为空',
  18. 'enterprises_type.require' => '生产类型不能为空',
  19. 'city.require' => '所属市不能为空',
  20. 'country.require' => '所属区县不能为空',
  21. 'towns.require' => '所属乡、镇、街道不能为空',
  22. ];
  23. }