CostProjectValidate.php 742 B

1234567891011121314151617181920212223242526
  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\project;
  8. use think\Validate;
  9. class CostProjectValidate extends Validate
  10. {
  11. protected $rule = [
  12. 'project_name' => 'require',
  13. 'project_num' => 'require',
  14. 'project_start_time' => 'require',
  15. 'project_end_time' => 'require',
  16. ];
  17. protected $message = [
  18. 'project_name.require' => '项目名称不能为空',
  19. 'project_num.require' => '项目编号不能为空',
  20. 'project_start_time.require' => '项目开始时间不能为空',
  21. 'project_end_time.require' => '项目结束时间不能为空',
  22. ];
  23. }