EmployeeSealImageRequest.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. class EmployeeSealImageRequest extends SdkRequest {
  3. const REQUEST_URL = "/v2/seal/employeesealimage"; // 附件接口地址
  4. private $companyName;
  5. private $contact;
  6. private $contactType;
  7. public function __construct() {
  8. $count = func_num_args();
  9. $args=func_get_args();
  10. if (method_exists($this,$f='__construct'.$count)) {
  11. call_user_func_array(array($this,$f),$args);
  12. }
  13. }
  14. public function __construct0() {
  15. }
  16. public function __construct2($contact, $contactType) {
  17. $this->contact = $contact;
  18. $this->contactType = $contactType;
  19. }
  20. public function getUrl() {
  21. return self::REQUEST_URL;
  22. }
  23. public function getHttpParamers() {
  24. $paramSwitcher = ParamSwitcher::instanceParam();
  25. $paramSwitcher->addParam('companyName', $this->companyName);
  26. $paramSwitcher->addParam('contact', $this->contact);
  27. $paramSwitcher->addParam('contactType', $this->contactType);
  28. $httpParameters = HttpParameter::httpGetParamer();
  29. $httpParameters->setParams($paramSwitcher->getParams());
  30. return $httpParameters;
  31. }
  32. /**
  33. * @return mixed
  34. */
  35. public function getCompanyName()
  36. {
  37. return $this->companyName;
  38. }
  39. /**
  40. * @param mixed $companyName
  41. */
  42. public function setCompanyName($companyName)
  43. {
  44. $this->companyName = $companyName;
  45. }
  46. /**
  47. * @return mixed
  48. */
  49. public function getContact()
  50. {
  51. return $this->contact;
  52. }
  53. /**
  54. * @param mixed $contact
  55. */
  56. public function setContact($contact)
  57. {
  58. $this->contact = $contact;
  59. }
  60. /**
  61. * @return mixed
  62. */
  63. public function getContactType()
  64. {
  65. return $this->contactType;
  66. }
  67. /**
  68. * @param mixed $contactType
  69. */
  70. public function setContactType($contactType)
  71. {
  72. $this->contactType = $contactType;
  73. }
  74. }