JushitaJdpCommonQueryRequest.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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.jushita.jdp.common.query
  8. /// </summary>
  9. public class JushitaJdpCommonQueryRequest : BaseTopRequest<Top.Api.Response.JushitaJdpCommonQueryResponse>
  10. {
  11. /// <summary>
  12. /// 查询名称
  13. /// </summary>
  14. public string CmdName { get; set; }
  15. /// <summary>
  16. /// json参数
  17. /// </summary>
  18. public string Params { get; set; }
  19. #region ITopRequest Members
  20. public override string GetApiName()
  21. {
  22. return "taobao.jushita.jdp.common.query";
  23. }
  24. public override IDictionary<string, string> GetParameters()
  25. {
  26. TopDictionary parameters = new TopDictionary();
  27. parameters.Add("cmd_name", this.CmdName);
  28. parameters.Add("params", this.Params);
  29. if (this.otherParams != null)
  30. {
  31. parameters.AddAll(this.otherParams);
  32. }
  33. return parameters;
  34. }
  35. public override void Validate()
  36. {
  37. RequestValidator.ValidateRequired("cmd_name", this.CmdName);
  38. RequestValidator.ValidateRequired("params", this.Params);
  39. }
  40. #endregion
  41. }
  42. }