FinancialValidate.php 697 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2021 勾股工作室
  4. * @license https://opensource.org/licenses/Apache-2.0
  5. * @link https://www.gougucms.com
  6. */
  7. namespace app\admin\validate;
  8. use think\Validate;
  9. class FinancialValidate extends Validate
  10. {
  11. protected $rule = [
  12. 'institution' => 'require',
  13. 'principal' => 'require',
  14. 'phone' => 'require',
  15. 'landline' => 'require',
  16. 'address' => 'require',
  17. ];
  18. protected $message = [
  19. 'institution.require' => '财政局不能为空',
  20. 'principal.require' => '负责人不能为空',
  21. 'phone.require' => '电话不能为空',
  22. 'landline.require' => '座机不能为空',
  23. 'address.require' => '地址不能为空',
  24. ];
  25. }