OpenAccountSearchRequest.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Collections.Generic;
  3. using Top.Api.Util;
  4. namespace Top.Api.Request
  5. {
  6. /// <summary>
  7. /// TOP API: taobao.open.account.search
  8. /// </summary>
  9. public class OpenAccountSearchRequest : BaseTopRequest<Top.Api.Response.OpenAccountSearchResponse>
  10. {
  11. /// <summary>
  12. /// 基于阿里云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
  13. /// </summary>
  14. public string Query { get; set; }
  15. #region ITopRequest Members
  16. public override string GetApiName()
  17. {
  18. return "taobao.open.account.search";
  19. }
  20. public override IDictionary<string, string> GetParameters()
  21. {
  22. TopDictionary parameters = new TopDictionary();
  23. parameters.Add("query", this.Query);
  24. if (this.otherParams != null)
  25. {
  26. parameters.AddAll(this.otherParams);
  27. }
  28. return parameters;
  29. }
  30. public override void Validate()
  31. {
  32. RequestValidator.ValidateRequired("query", this.Query);
  33. }
  34. #endregion
  35. }
  36. }