OapiAtsEvaluateJobmatchFinishRequest.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.ats.evaluate.jobmatch.finish request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.08.10
  7. */
  8. class OapiAtsEvaluateJobmatchFinishRequest
  9. {
  10. /**
  11. * 招聘业务标识
  12. **/
  13. private $bizCode;
  14. /**
  15. * 测评结论
  16. **/
  17. private $conclusion;
  18. /**
  19. * 请求扩展字段
  20. **/
  21. private $extData;
  22. /**
  23. * 外部测评系统测评记录id,全局唯一
  24. **/
  25. private $outerEvaluateId;
  26. /**
  27. * 公网可以下载,不需要鉴权的评测报告下载地址,最大长度1024
  28. **/
  29. private $reportDownloadUrl;
  30. /**
  31. * json格式的测评结果
  32. **/
  33. private $result;
  34. /**
  35. * 岗位匹配得分,小数点后保留2位
  36. **/
  37. private $score;
  38. private $apiParas = array();
  39. public function setBizCode($bizCode)
  40. {
  41. $this->bizCode = $bizCode;
  42. $this->apiParas["biz_code"] = $bizCode;
  43. }
  44. public function getBizCode()
  45. {
  46. return $this->bizCode;
  47. }
  48. public function setConclusion($conclusion)
  49. {
  50. $this->conclusion = $conclusion;
  51. $this->apiParas["conclusion"] = $conclusion;
  52. }
  53. public function getConclusion()
  54. {
  55. return $this->conclusion;
  56. }
  57. public function setExtData($extData)
  58. {
  59. $this->extData = $extData;
  60. $this->apiParas["ext_data"] = $extData;
  61. }
  62. public function getExtData()
  63. {
  64. return $this->extData;
  65. }
  66. public function setOuterEvaluateId($outerEvaluateId)
  67. {
  68. $this->outerEvaluateId = $outerEvaluateId;
  69. $this->apiParas["outer_evaluate_id"] = $outerEvaluateId;
  70. }
  71. public function getOuterEvaluateId()
  72. {
  73. return $this->outerEvaluateId;
  74. }
  75. public function setReportDownloadUrl($reportDownloadUrl)
  76. {
  77. $this->reportDownloadUrl = $reportDownloadUrl;
  78. $this->apiParas["report_download_url"] = $reportDownloadUrl;
  79. }
  80. public function getReportDownloadUrl()
  81. {
  82. return $this->reportDownloadUrl;
  83. }
  84. public function setResult($result)
  85. {
  86. $this->result = $result;
  87. $this->apiParas["result"] = $result;
  88. }
  89. public function getResult()
  90. {
  91. return $this->result;
  92. }
  93. public function setScore($score)
  94. {
  95. $this->score = $score;
  96. $this->apiParas["score"] = $score;
  97. }
  98. public function getScore()
  99. {
  100. return $this->score;
  101. }
  102. public function getApiMethodName()
  103. {
  104. return "dingtalk.oapi.ats.evaluate.jobmatch.finish";
  105. }
  106. public function getApiParas()
  107. {
  108. return $this->apiParas;
  109. }
  110. public function check()
  111. {
  112. RequestCheckUtil::checkNotNull($this->bizCode,"bizCode");
  113. RequestCheckUtil::checkNotNull($this->conclusion,"conclusion");
  114. RequestCheckUtil::checkNotNull($this->extData,"extData");
  115. RequestCheckUtil::checkNotNull($this->outerEvaluateId,"outerEvaluateId");
  116. RequestCheckUtil::checkNotNull($this->reportDownloadUrl,"reportDownloadUrl");
  117. RequestCheckUtil::checkNotNull($this->result,"result");
  118. RequestCheckUtil::checkNotNull($this->score,"score");
  119. }
  120. public function putOtherTextParam($key, $value) {
  121. $this->apiParas[$key] = $value;
  122. $this->$key = $value;
  123. }
  124. }