OapiDingmiO2oSendRequest.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.dingmi.o2o.send request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.09.27
  7. */
  8. class OapiDingmiO2oSendRequest
  9. {
  10. /**
  11. * 消息类型
  12. **/
  13. private $msgKey;
  14. /**
  15. * 消息内容
  16. **/
  17. private $msgParam;
  18. /**
  19. * 员工id
  20. **/
  21. private $userid;
  22. private $apiParas = array();
  23. public function setMsgKey($msgKey)
  24. {
  25. $this->msgKey = $msgKey;
  26. $this->apiParas["msg_key"] = $msgKey;
  27. }
  28. public function getMsgKey()
  29. {
  30. return $this->msgKey;
  31. }
  32. public function setMsgParam($msgParam)
  33. {
  34. $this->msgParam = $msgParam;
  35. $this->apiParas["msg_param"] = $msgParam;
  36. }
  37. public function getMsgParam()
  38. {
  39. return $this->msgParam;
  40. }
  41. public function setUserid($userid)
  42. {
  43. $this->userid = $userid;
  44. $this->apiParas["userid"] = $userid;
  45. }
  46. public function getUserid()
  47. {
  48. return $this->userid;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "dingtalk.oapi.dingmi.o2o.send";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. }
  61. public function putOtherTextParam($key, $value) {
  62. $this->apiParas[$key] = $value;
  63. $this->$key = $value;
  64. }
  65. }