JosSecretApiReportGetRequest.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?php
  2. class JosSecretApiReportGetRequest
  3. {
  4. private $apiParas = array();
  5. public function getApiMethodName(){
  6. return "jingdong.jos.secret.api.report.get";
  7. }
  8. public function getApiParas(){
  9. if(empty($this->apiParas)){
  10. return "{}";
  11. }
  12. return $this->apiParas;
  13. }
  14. public function check(){
  15. }
  16. public function putOtherTextParam($key, $value){
  17. $this->apiParas[$key] = $value;
  18. $this->$key = $value;
  19. }
  20. private $version;
  21. public function setVersion($version){
  22. $this->version = $version;
  23. }
  24. public function getVersion(){
  25. return $this->version;
  26. }
  27. private $accessToken;
  28. public function setAccessToken($accessToken){
  29. $this->accessToken = $accessToken;
  30. $this->apiParas["access_token"] = $accessToken;
  31. }
  32. public function getAccessToken(){
  33. return $this->accessToken;
  34. }
  35. private $businessId;
  36. public function setBusinessId($businessId){
  37. $this->businessId = $businessId;
  38. $this->apiParas["businessId"] = $businessId;
  39. }
  40. public function getBusinessId(){
  41. return $this->businessId;
  42. }
  43. private $text;
  44. public function setText($text){
  45. $this->text = $text;
  46. $this->apiParas["text"] = $text;
  47. }
  48. public function getText(){
  49. return $this->text;
  50. }
  51. private $attribute;
  52. public function setAttribute($attribute){
  53. $this->attribute = $attribute;
  54. $this->apiParas["attribute"] = $attribute;
  55. }
  56. public function getAttribute(){
  57. return $this->attribute;
  58. }
  59. private $customerUserId;
  60. public function setCustomerUserId($customerUserId){
  61. $this->customerUserId = $customerUserId;
  62. $this->apiParas["customer_user_id"] = $customerUserId;
  63. }
  64. public function getCustomerUserId(){
  65. return $this->customerUserId;
  66. }
  67. private $serverUrl;
  68. public function setServerUrl($serverUrl){
  69. $this->serverUrl = $serverUrl;
  70. $this->apiParas["server_url"] = $serverUrl;
  71. }
  72. public function getServerUrl(){
  73. return $this->serverUrl;
  74. }
  75. }