优惠券订单及其他脚本

FilesGetRequest.php 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * TOP API: taobao.files.get request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2018.07.25
  7. */
  8. class FilesGetRequest
  9. {
  10. /**
  11. * 搜索结束时间
  12. **/
  13. private $endDate;
  14. /**
  15. * 搜索开始时间
  16. **/
  17. private $startDate;
  18. /**
  19. * 下载链接状态。1:未下载。2:已下载
  20. **/
  21. private $status;
  22. private $apiParas = array();
  23. public function setEndDate($endDate)
  24. {
  25. $this->endDate = $endDate;
  26. $this->apiParas["end_date"] = $endDate;
  27. }
  28. public function getEndDate()
  29. {
  30. return $this->endDate;
  31. }
  32. public function setStartDate($startDate)
  33. {
  34. $this->startDate = $startDate;
  35. $this->apiParas["start_date"] = $startDate;
  36. }
  37. public function getStartDate()
  38. {
  39. return $this->startDate;
  40. }
  41. public function setStatus($status)
  42. {
  43. $this->status = $status;
  44. $this->apiParas["status"] = $status;
  45. }
  46. public function getStatus()
  47. {
  48. return $this->status;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "taobao.files.get";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->endDate,"endDate");
  61. RequestCheckUtil::checkNotNull($this->startDate,"startDate");
  62. }
  63. public function putOtherTextParam($key, $value) {
  64. $this->apiParas[$key] = $value;
  65. $this->$key = $value;
  66. }
  67. }