MerchatResultJson.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. using Senparc.Weixin.Entities;
  2. using System.Collections.Generic;
  3. namespace Senparc.Weixin.MP.AdvancedAPIs.Wxa.MerchantJson
  4. {
  5. /// <summary>
  6. /// 门店小程序类目信息
  7. /// </summary>
  8. public class GetMerchantCategoryResult : WxJsonResult
  9. {
  10. /// <summary>
  11. /// 所有类目数据
  12. /// </summary>
  13. public AllCategoryInfo data { get; set; }
  14. }
  15. /// <summary>
  16. /// 所有类目数据
  17. /// </summary>
  18. public class AllCategoryInfo
  19. {
  20. /// <summary>
  21. /// 所有类目数据
  22. /// </summary>
  23. public CateGoryCollection all_category_info { get; set; }
  24. }
  25. /// <summary>
  26. /// 类目信息集合
  27. /// </summary>
  28. public class CateGoryCollection
  29. {
  30. /// <summary>
  31. /// 类目信息集合
  32. /// </summary>
  33. public IEnumerable<MerchantCategory> categories { get; set; }
  34. }
  35. /// <summary>
  36. /// 类目信息
  37. /// </summary>
  38. public class MerchantCategory
  39. {
  40. /// <summary>
  41. /// 类目id
  42. /// </summary>
  43. public int id { get; set; }
  44. /// <summary>
  45. ///
  46. /// </summary>
  47. public string name { get; set; }
  48. /// <summary>
  49. /// 类目的级别,一级或者二级类目
  50. /// </summary>
  51. public int level { get; set; }
  52. /// <summary>
  53. /// 子级类目id
  54. /// </summary>
  55. public IEnumerable<int> children { get; set; }
  56. /// <summary>
  57. /// 父级类目Id
  58. /// </summary>
  59. public int? father { get; set; }
  60. /// <summary>
  61. /// 所需证件
  62. /// </summary>
  63. public QualifyExter_list qualify { get; set; }
  64. public int scene { get; set; }
  65. /// <summary>
  66. /// 0或者1, 0表示不用特殊处理 1表示创建该类目的门店小程序时,需要添加相关证件
  67. /// </summary>
  68. public int sensitive_type { get; set; }
  69. }
  70. public class QualifyValue
  71. {
  72. /// <summary>
  73. /// 证件名
  74. /// </summary>
  75. public string name { get; set; }
  76. }
  77. public class QualifyInner_list
  78. {
  79. public IEnumerable<QualifyValue> inner_list { get; set; }
  80. }
  81. public class QualifyExter_list
  82. {
  83. public IEnumerable<QualifyInner_list> exter_list { get; set; }
  84. }
  85. }