1
0

IssueWorkValidate.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace app\workerapi\validate;
  3. use app\common\validate\BaseValidate;
  4. /**
  5. * IssueWork验证器
  6. * Class IssueWorkValidate
  7. * @package app\workerapi\validate\works
  8. */
  9. class IssueWorkValidate extends BaseValidate
  10. {
  11. /**
  12. * 设置校验规则
  13. * @var string[]
  14. */
  15. protected $rule = [
  16. 'id' => 'require',
  17. 'work_sn' => 'require',
  18. 'master_worker_id' => 'require',
  19. 'issue_approval' => 'require',
  20. 'responsible' => 'require',
  21. 'complaint_details' => 'require',
  22. ];
  23. /**
  24. * 参数描述
  25. * @var string[]
  26. */
  27. protected $field = [
  28. 'id' => 'id',
  29. 'work_sn' => '工单编号',
  30. 'master_worker_id' => '师傅',
  31. 'issue_approval' => '投诉审核状态',
  32. 'responsible' => '定责',
  33. 'complaint_details' => '投诉详情',
  34. ];
  35. /**
  36. * @notes 详情场景
  37. * @return IssueWorkValidate
  38. * @author whitef
  39. * @date 2024/07/10 15:06
  40. */
  41. public function sceneDetail()
  42. {
  43. return $this->only(['id']);
  44. }
  45. }