SealStatusManageRequest.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. class SealStatusManageRequest extends SdkRequest {
  3. const REQUEST_URL = "/v2/seal/status";
  4. private $sealId;
  5. private $operate;
  6. public function getUrl() {
  7. return self::REQUEST_URL;
  8. }
  9. public function __construct() {
  10. $count = func_num_args();
  11. $args=func_get_args();
  12. if (method_exists($this,$f='__construct'.$count)) {
  13. call_user_func_array(array($this,$f),$args);
  14. }
  15. }
  16. public function __construct0() {
  17. }
  18. public function __construct1($sealId, $operate) {
  19. $this->sealId = $sealId;
  20. $this->operate = $operate;
  21. }
  22. public function getHttpParamers() {
  23. $paramSwitcher = ParamSwitcher::instanceParam();
  24. $paramSwitcher->addParam('sealId', $this->sealId);
  25. $paramSwitcher->addParam('operate', $this->operate);
  26. $httpParameters = HttpParameter::httpPostParamer();
  27. $httpParameters->setJsonParams(json_encode($paramSwitcher->getParams()));
  28. return $httpParameters;
  29. }
  30. /**
  31. * @return mixed
  32. */
  33. public function getSealId()
  34. {
  35. return $this->sealId;
  36. }
  37. /**
  38. * @param mixed $sealId
  39. */
  40. public function setSealId($sealId)
  41. {
  42. $this->sealId = $sealId;
  43. }
  44. /**
  45. * @return mixed
  46. */
  47. public function getOperate()
  48. {
  49. return $this->operate;
  50. }
  51. /**
  52. * @param mixed $operate
  53. */
  54. public function setOperate($operate)
  55. {
  56. $this->operate = $operate;
  57. }
  58. }