OpenAccountSearchRequest.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * TOP API: taobao.open.account.search request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2017.04.13
  7. */
  8. class OpenAccountSearchRequest
  9. {
  10. /**
  11. * 基于阿里云OpenSearch服务,openSearch查询语法:https://help.aliyun.com/document_detail/29157.html,搜索服务能够基于id,loginId,mobile,email,isvAccountId,display_name,create_app_key,做搜索查询,示例中mobile可以基于模糊搜素,搜索135的账号,该搜索是分页返回,start表示开始行,hit表示一页返回值,最大500
  12. **/
  13. private $query;
  14. private $apiParas = array();
  15. public function setQuery($query)
  16. {
  17. $this->query = $query;
  18. $this->apiParas["query"] = $query;
  19. }
  20. public function getQuery()
  21. {
  22. return $this->query;
  23. }
  24. public function getApiMethodName()
  25. {
  26. return "taobao.open.account.search";
  27. }
  28. public function getApiParas()
  29. {
  30. return $this->apiParas;
  31. }
  32. public function check()
  33. {
  34. RequestCheckUtil::checkNotNull($this->query,"query");
  35. }
  36. public function putOtherTextParam($key, $value) {
  37. $this->apiParas[$key] = $value;
  38. $this->$key = $value;
  39. }
  40. }