GroupResult.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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
  17. {
  18. /// <summary>
  19. /// 增加分组返回信息
  20. /// </summary>
  21. public class AddGroupResult : WxJsonResult
  22. {
  23. /// <summary>
  24. /// 分组ID
  25. /// </summary>
  26. public int group_id { get; set; }
  27. }
  28. /// <summary>
  29. /// 获取所有分组返回信息
  30. /// </summary>
  31. public class GetAllGroup
  32. {
  33. /// <summary>
  34. /// 分组集合
  35. /// </summary>
  36. public List<GroupsDetail> groups_detail { get; set; }
  37. }
  38. public class GroupsDetail
  39. {
  40. /// <summary>
  41. /// 分组ID
  42. /// </summary>
  43. public int group_id { get; set; }
  44. /// <summary>
  45. /// 分组名称
  46. /// </summary>
  47. public string group_name { get; set; }
  48. }
  49. public class GetByIdGroup : WxJsonResult
  50. {
  51. /// <summary>
  52. /// 分组信息
  53. /// </summary>
  54. public Group_Detail group_detail { get; set; }
  55. }
  56. public class Group_Detail
  57. {
  58. /// <summary>
  59. /// 分组ID
  60. /// </summary>
  61. public int group_id { get; set; }
  62. /// <summary>
  63. /// 分组名称
  64. /// </summary>
  65. public string group_name { get; set; }
  66. /// <summary>
  67. /// 商品ID集合
  68. /// </summary>
  69. public string[] product_list { get; set; }
  70. }
  71. }