You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

86 lines
1.7 KiB

  1. <?php
  2. /**
  3. * TOP API: taobao.xhotel.rate.relationshipwithroom.get request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2016.04.13
  7. */
  8. namespace backend\modules\hotel\models\Ali;
  9. use common\models\commonModel;
  10. class XhotelRateRelationshipwithroomGetRequest extends commonModel
  11. {
  12. /**
  13. * 页数
  14. **/
  15. public $page_no;
  16. /**
  17. * rpId
  18. **/
  19. public $rp_id;
  20. public $apiParas = array();
  21. public function setAttributes($values, $safeOnly = true)
  22. {
  23. if (is_array($values)) {
  24. $attributes = array_flip($safeOnly ? $this->safeAttributes() : $this->attributes());
  25. foreach ($values as $name => $value) {
  26. if (isset($attributes[$name])) {
  27. $this->apiParas[$name] = $value;
  28. } elseif ($safeOnly) {
  29. $this->onUnsafeAttribute($name, $value);
  30. }
  31. }
  32. }
  33. parent::setAttributes($values, $safeOnly);
  34. }
  35. public function rules()
  36. {
  37. return [
  38. [['rp_id'], 'required'],
  39. [['page_no'], 'number']
  40. ];
  41. }
  42. public function setPageNo($pageNo)
  43. {
  44. $this->page_no = $pageNo;
  45. $this->apiParas["page_no"] = $pageNo;
  46. }
  47. public function getPageNo()
  48. {
  49. return $this->page_no;
  50. }
  51. public function setRpId($rpId)
  52. {
  53. $this->rp_id = $rpId;
  54. $this->apiParas["rp_id"] = $rpId;
  55. }
  56. public function getRpId()
  57. {
  58. return $this->rp_id;
  59. }
  60. public function getApiMethodName()
  61. {
  62. return "taobao.xhotel.rate.relationshipwithroom.get";
  63. }
  64. public function getApiParas()
  65. {
  66. return $this->apiParas;
  67. }
  68. public function putOtherTextParam($key, $value) {
  69. $this->apiParas[$key] = $value;
  70. $this->$key = $value;
  71. }
  72. }