OapiEduFaceSearchRequest.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.edu.face.search request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.01.09
  7. */
  8. class OapiEduFaceSearchRequest
  9. {
  10. /**
  11. * 班级id
  12. **/
  13. private $classId;
  14. /**
  15. * 图片宽度,同步调用时候必须
  16. **/
  17. private $height;
  18. /**
  19. * 是否同步调用,默认不同步
  20. **/
  21. private $synchronous;
  22. /**
  23. * https://img.alicdn.com/tfs/TB1._LRfUz1gK0jSZLeXXb9kVXa-36-32.png
  24. **/
  25. private $url;
  26. /**
  27. * 用户id
  28. **/
  29. private $userid;
  30. /**
  31. * 图片宽度,同步调用时候必须
  32. **/
  33. private $width;
  34. private $apiParas = array();
  35. public function setClassId($classId)
  36. {
  37. $this->classId = $classId;
  38. $this->apiParas["class_id"] = $classId;
  39. }
  40. public function getClassId()
  41. {
  42. return $this->classId;
  43. }
  44. public function setHeight($height)
  45. {
  46. $this->height = $height;
  47. $this->apiParas["height"] = $height;
  48. }
  49. public function getHeight()
  50. {
  51. return $this->height;
  52. }
  53. public function setSynchronous($synchronous)
  54. {
  55. $this->synchronous = $synchronous;
  56. $this->apiParas["synchronous"] = $synchronous;
  57. }
  58. public function getSynchronous()
  59. {
  60. return $this->synchronous;
  61. }
  62. public function setUrl($url)
  63. {
  64. $this->url = $url;
  65. $this->apiParas["url"] = $url;
  66. }
  67. public function getUrl()
  68. {
  69. return $this->url;
  70. }
  71. public function setUserid($userid)
  72. {
  73. $this->userid = $userid;
  74. $this->apiParas["userid"] = $userid;
  75. }
  76. public function getUserid()
  77. {
  78. return $this->userid;
  79. }
  80. public function setWidth($width)
  81. {
  82. $this->width = $width;
  83. $this->apiParas["width"] = $width;
  84. }
  85. public function getWidth()
  86. {
  87. return $this->width;
  88. }
  89. public function getApiMethodName()
  90. {
  91. return "dingtalk.oapi.edu.face.search";
  92. }
  93. public function getApiParas()
  94. {
  95. return $this->apiParas;
  96. }
  97. public function check()
  98. {
  99. RequestCheckUtil::checkNotNull($this->classId,"classId");
  100. RequestCheckUtil::checkNotNull($this->url,"url");
  101. }
  102. public function putOtherTextParam($key, $value) {
  103. $this->apiParas[$key] = $value;
  104. $this->$key = $value;
  105. }
  106. }