GroupPostData.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. namespace Senparc.Weixin.MP.AdvancedAPIs.MerChant
  16. {
  17. public class BaseGroupData
  18. {
  19. public GroupDetail group_detail { get; set; }
  20. }
  21. public class GroupDetail
  22. {
  23. /// <summary>
  24. /// 分组名称
  25. /// </summary>
  26. public string group_name { get; set; }
  27. /// <summary>
  28. /// 商品ID集合
  29. /// </summary>
  30. public string[] product_list { get; set; }
  31. }
  32. /// <summary>
  33. /// 修改分组属性需要Post的数据
  34. /// </summary>
  35. public class PropertyModGroup
  36. {
  37. /// <summary>
  38. /// 分组Id
  39. /// </summary>
  40. public int group_id { get; set; }
  41. /// <summary>
  42. /// 分组名称
  43. /// </summary>
  44. public string group_name { get; set; }
  45. }
  46. /// <summary>
  47. /// 修改分组商品需要Post的数据
  48. /// </summary>
  49. public class ProductModGroup
  50. {
  51. /// <summary>
  52. /// 分组ID
  53. /// </summary>
  54. public int group_id { get; set; }
  55. /// <summary>
  56. /// 分组的商品集合
  57. /// </summary>
  58. public List<Product> product { get; set; }
  59. }
  60. public class Product
  61. {
  62. /// <summary>
  63. /// 商品ID
  64. /// </summary>
  65. public string product_id { get; set; }
  66. /// <summary>
  67. /// 修改操作(0-删除, 1-增加)
  68. /// </summary>
  69. public int mod_action { get; set; }
  70. }
  71. /// <summary>
  72. /// 增加分组
  73. /// </summary>
  74. public class AddGroupData : BaseGroupData
  75. {
  76. }
  77. }