OapiSmartworkHrmEmployeeV2UpdateRequest.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.smartwork.hrm.employee.v2.update request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.12.29
  7. */
  8. class OapiSmartworkHrmEmployeeV2UpdateRequest
  9. {
  10. /**
  11. * 微应用在企业的AgentId
  12. **/
  13. private $agentid;
  14. /**
  15. * 编辑花名册入参
  16. **/
  17. private $param;
  18. private $apiParas = array();
  19. public function setAgentid($agentid)
  20. {
  21. $this->agentid = $agentid;
  22. $this->apiParas["agentid"] = $agentid;
  23. }
  24. public function getAgentid()
  25. {
  26. return $this->agentid;
  27. }
  28. public function setParam($param)
  29. {
  30. $this->param = $param;
  31. $this->apiParas["param"] = $param;
  32. }
  33. public function getParam()
  34. {
  35. return $this->param;
  36. }
  37. public function getApiMethodName()
  38. {
  39. return "dingtalk.oapi.smartwork.hrm.employee.v2.update";
  40. }
  41. public function getApiParas()
  42. {
  43. return $this->apiParas;
  44. }
  45. public function check()
  46. {
  47. RequestCheckUtil::checkNotNull($this->agentid,"agentid");
  48. }
  49. public function putOtherTextParam($key, $value) {
  50. $this->apiParas[$key] = $value;
  51. $this->$key = $value;
  52. }
  53. }