OapiAtsJobDeliverAddRequest.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.ats.job.deliver.add request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.08.04
  7. */
  8. class OapiAtsJobDeliverAddRequest
  9. {
  10. /**
  11. * 业务唯一标识,接入前请提前沟通
  12. **/
  13. private $bizCode;
  14. /**
  15. * 投递渠道, 接入前请提前沟通
  16. **/
  17. private $deliverChannel;
  18. /**
  19. * 失败原因
  20. **/
  21. private $deliverMsg;
  22. /**
  23. * 渠道中的一次职位外投的唯一id,如需要更新deliver_status该入参必传
  24. **/
  25. private $deliverOuterId;
  26. /**
  27. * 投递中:created,投递失败:fail,投递成功:success,已下架:off_shelf
  28. **/
  29. private $deliverStatus;
  30. /**
  31. * 智能招聘职位id
  32. **/
  33. private $jobId;
  34. private $apiParas = array();
  35. public function setBizCode($bizCode)
  36. {
  37. $this->bizCode = $bizCode;
  38. $this->apiParas["biz_code"] = $bizCode;
  39. }
  40. public function getBizCode()
  41. {
  42. return $this->bizCode;
  43. }
  44. public function setDeliverChannel($deliverChannel)
  45. {
  46. $this->deliverChannel = $deliverChannel;
  47. $this->apiParas["deliver_channel"] = $deliverChannel;
  48. }
  49. public function getDeliverChannel()
  50. {
  51. return $this->deliverChannel;
  52. }
  53. public function setDeliverMsg($deliverMsg)
  54. {
  55. $this->deliverMsg = $deliverMsg;
  56. $this->apiParas["deliver_msg"] = $deliverMsg;
  57. }
  58. public function getDeliverMsg()
  59. {
  60. return $this->deliverMsg;
  61. }
  62. public function setDeliverOuterId($deliverOuterId)
  63. {
  64. $this->deliverOuterId = $deliverOuterId;
  65. $this->apiParas["deliver_outer_id"] = $deliverOuterId;
  66. }
  67. public function getDeliverOuterId()
  68. {
  69. return $this->deliverOuterId;
  70. }
  71. public function setDeliverStatus($deliverStatus)
  72. {
  73. $this->deliverStatus = $deliverStatus;
  74. $this->apiParas["deliver_status"] = $deliverStatus;
  75. }
  76. public function getDeliverStatus()
  77. {
  78. return $this->deliverStatus;
  79. }
  80. public function setJobId($jobId)
  81. {
  82. $this->jobId = $jobId;
  83. $this->apiParas["job_id"] = $jobId;
  84. }
  85. public function getJobId()
  86. {
  87. return $this->jobId;
  88. }
  89. public function getApiMethodName()
  90. {
  91. return "dingtalk.oapi.ats.job.deliver.add";
  92. }
  93. public function getApiParas()
  94. {
  95. return $this->apiParas;
  96. }
  97. public function check()
  98. {
  99. RequestCheckUtil::checkNotNull($this->bizCode,"bizCode");
  100. RequestCheckUtil::checkNotNull($this->deliverChannel,"deliverChannel");
  101. RequestCheckUtil::checkNotNull($this->deliverStatus,"deliverStatus");
  102. RequestCheckUtil::checkNotNull($this->jobId,"jobId");
  103. }
  104. public function putOtherTextParam($key, $value) {
  105. $this->apiParas[$key] = $value;
  106. $this->$key = $value;
  107. }
  108. }