KplOpenAreaCheckareaRequest.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. class KplOpenAreaCheckareaRequest
  3. {
  4. public function __construct()
  5. {
  6. $this->version = "1.0";
  7. }
  8. private $apiParas = array();
  9. public function getApiMethodName(){
  10. return "jd.kpl.open.area.checkarea";
  11. }
  12. public function getApiParas(){
  13. if(empty($this->apiParas)){
  14. return "{}";
  15. }
  16. return $this->apiParas;
  17. }
  18. public function check(){
  19. }
  20. public function putOtherTextParam($key, $value){
  21. $this->apiParas[$key] = $value;
  22. $this->$key = $value;
  23. }
  24. private $version;
  25. public function setVersion($version){
  26. $this->version = $version;
  27. }
  28. public function getVersion(){
  29. return $this->version;
  30. }
  31. private $provinceId;
  32. public function setProvinceId($provinceId){
  33. $this->apiParas['provinceId'] = $provinceId;
  34. }
  35. public function getProvinceId(){
  36. return $this->apiParas['provinceId'];
  37. }
  38. private $cityId;
  39. public function setCityId($cityId){
  40. $this->apiParas['cityId'] = $cityId;
  41. }
  42. public function getCityId(){
  43. return $this->apiParas['cityId'];
  44. }
  45. private $countyId;
  46. public function setCountyId($countyId){
  47. $this->apiParas['countyId'] = $countyId;
  48. }
  49. public function getCountyId(){
  50. return $this->apiParas['countyId'];
  51. }
  52. private $townId;
  53. public function setTownId($townId){
  54. $this->apiParas['townId'] = $townId;
  55. }
  56. public function getTownId(){
  57. return $this->apiParas['townId'];
  58. }
  59. }
  60. ?>