OapiSmartworkHrmNavigationbarConfigGetRequest.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.smartwork.hrm.navigationbar.config.get request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2021.01.19
  7. */
  8. class OapiSmartworkHrmNavigationbarConfigGetRequest
  9. {
  10. /**
  11. * isv变更导航栏属性
  12. **/
  13. private $changeParam;
  14. /**
  15. * 基础导航了类型,枚举值, "pc"-PC端, "oa"-OA端
  16. **/
  17. private $type;
  18. /**
  19. * 导航栏访问员工ID
  20. **/
  21. private $userid;
  22. private $apiParas = array();
  23. public function setChangeParam($changeParam)
  24. {
  25. $this->changeParam = $changeParam;
  26. $this->apiParas["change_param"] = $changeParam;
  27. }
  28. public function getChangeParam()
  29. {
  30. return $this->changeParam;
  31. }
  32. public function setType($type)
  33. {
  34. $this->type = $type;
  35. $this->apiParas["type"] = $type;
  36. }
  37. public function getType()
  38. {
  39. return $this->type;
  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.smartwork.hrm.navigationbar.config.get";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->type,"type");
  61. RequestCheckUtil::checkNotNull($this->userid,"userid");
  62. }
  63. public function putOtherTextParam($key, $value) {
  64. $this->apiParas[$key] = $value;
  65. $this->$key = $value;
  66. }
  67. }