From db9e3ccf8a9fc5516f25430cd43584456cbf850b Mon Sep 17 00:00:00 2001 From: "Jackson.Shuai" Date: Wed, 19 May 2021 10:54:35 +0800 Subject: [PATCH] request: add wdt-vip-api-trade-query-request class --- qimen/request/WdtVipApiTradeQueryRequest.php | 182 +++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 qimen/request/WdtVipApiTradeQueryRequest.php diff --git a/qimen/request/WdtVipApiTradeQueryRequest.php b/qimen/request/WdtVipApiTradeQueryRequest.php new file mode 100644 index 0000000..eb161e6 --- /dev/null +++ b/qimen/request/WdtVipApiTradeQueryRequest.php @@ -0,0 +1,182 @@ +sid = $sid; + $this->apiParas['sid'] = $sid; + } + + public function getSid() + { + return $this->sid; + } + + public function setAppkey($appkey) + { + $this->appkey = $appkey; + $this->apiParas['appkey'] = $appkey; + } + + public function getAppkey() + { + return $this->appkey; + } + + public function setStartTime($startTime) + { + $this->startTime = $startTime; + $this->apiParas['start_time'] = $startTime; + } + + public function getStartTime() + { + return $this->startTime; + } + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + $this->apiParas['end_time'] = $endTime; + } + + public function getEndTime() + { + return $this->endTime; + } + + public function setPageNo($pageNo) + { + $this->pageNo = $pageNo; + $this->apiParas['page_no'] = $pageNo; + } + + public function getPageNo() + { + return $this->pageNo; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + $this->apiParas['page_size'] = $pageSize; + } + + public function getPageSize() + { + return $this->pageSize; + } + + public function setTid($tid) + { + $this->tid = $tid; + $this->apiParas['tid'] = $tid; + } + + public function getTid() + { + return $this->tid; + } + + public function setPlatformId($platformId) + { + $this->platformId = $platformId; + $this->apiParas['platformId'] = $platformId; + } + + public function getPlatformId() + { + return $this->platformId; + } + + public function setShopNo($shopNo) + { + $this->shopNo = $shopNo; + $this->apiParas['shop_no'] = $shopNo; + } + + public function getShopNo() + { + return $this->shopNo; + } + + public function getApiMethodName() + { + return 'wdt.vip.api.trade.query'; + } + + public function getApiParas() + { + return $this->apiParas; + } + + public function check() + { + RequestCheckUtil::checkNotNull($this->endTime, 'endTime'); + RequestCheckUtil::checkNotNull($this->pageNo, 'pageNo'); + RequestCheckUtil::checkNotNull($this->pageSize, 'pageSize'); + RequestCheckUtil::checkNotNull($this->sid, 'sid'); + RequestCheckUtil::checkNotNull($this->startTime, 'startTime'); + } + + public function putOtherTextParam($key, $value) + { + $this->apiParas[$key] = $value; + $this->$key = $value; + } +}