ShelfResult.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. #region Apache License Version 2.0
  2. /*----------------------------------------------------------------
  3. Copyright 2019 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd.
  4. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
  5. except in compliance with the License. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software distributed under the
  8. License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  9. either express or implied. See the License for the specific language governing permissions
  10. and limitations under the License.
  11. Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md
  12. ----------------------------------------------------------------*/
  13. #endregion Apache License Version 2.0
  14. using System.Collections.Generic;
  15. using Senparc.Weixin.Entities;
  16. namespace Senparc.Weixin.MP.AdvancedAPIs.MerChant
  17. {
  18. /// <summary>
  19. /// 添加货架返回结果
  20. /// </summary>
  21. public class AddShelfResult : WxJsonResult
  22. {
  23. public int shelf_id { get; set; }//货架ID
  24. }
  25. /// <summary>
  26. /// 获取所有货架
  27. /// </summary>
  28. public class GetAllShelfResult : WxJsonResult
  29. {
  30. public List<ShelfItem> shelves { get; set; }
  31. }
  32. public class ShelfItem
  33. {
  34. public ShelfInfo shelf_info { get; set; }
  35. /// <summary>
  36. /// 货架banner
  37. /// </summary>
  38. public string shelf_banner { get; set; }
  39. /// <summary>
  40. /// 货架名称
  41. /// </summary>
  42. public string shelf_name { get; set; }
  43. /// <summary>
  44. /// 货架ID
  45. /// </summary>
  46. public int shelf_id { get; set; }
  47. }
  48. public class ShelfInfo
  49. {
  50. public List<Shelf_ModuleInfo> module_infos { get; set; }
  51. }
  52. public class Shelf_ModuleInfo
  53. {
  54. public Shelf_GroupInfo group_infos { get; set; }
  55. public Shelf_Group group_info { get; set; }
  56. public int eid { get; set; }
  57. }
  58. public class Shelf_GroupInfo
  59. {
  60. public List<Shelf_Group> groups { get; set; }
  61. public string img_background { get; set; }
  62. }
  63. public class Shelf_Group
  64. {
  65. public int group_id { get; set; }
  66. public Shelf_Filter filter { get; set; }
  67. }
  68. public class Shelf_Filter
  69. {
  70. public int count { get; set; }
  71. }
  72. /// <summary>
  73. /// 根据货架ID获取货架信息
  74. /// </summary>
  75. public class GetByIdShelfResult : WxJsonResult
  76. {
  77. public ShelfInfo shelf_info { get; set; }
  78. /// <summary>
  79. /// 货架banner
  80. /// </summary>
  81. public string shelf_banner { get; set; }
  82. /// <summary>
  83. /// 货架名称
  84. /// </summary>
  85. public string shelf_name { get; set; }
  86. /// <summary>
  87. /// 货架ID
  88. /// </summary>
  89. public int shelf_id { get; set; }
  90. }
  91. }