PageManageResultJson.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. /*----------------------------------------------------------------
  15. Copyright (C) 2019 Senparc
  16. 文件名:PageManageResultJson.cs
  17. 文件功能描述:页面管理返回结果
  18. 创建标识:Senparc - 20150512
  19. ----------------------------------------------------------------*/
  20. using System.Collections.Generic;
  21. using Senparc.Weixin.Entities;
  22. namespace Senparc.Weixin.MP.AdvancedAPIs.ShakeAround
  23. {
  24. /// <summary>
  25. /// 新增与编辑页面返回结果基类
  26. /// </summary>
  27. public class BasePageResultJson : WxJsonResult
  28. {
  29. /// <summary>
  30. /// 返回数据
  31. /// </summary>
  32. public BasePage_Data data { get; set; }
  33. }
  34. public class BasePage_Data
  35. {
  36. /// <summary>
  37. /// 页面id
  38. /// </summary>
  39. public long page_id { get; set; }
  40. }
  41. /// <summary>
  42. /// 新增页面返回结果
  43. /// </summary>
  44. public class AddPageResultJson : BasePageResultJson
  45. {
  46. }
  47. /// <summary>
  48. /// 编辑页面返回结果
  49. /// </summary>
  50. public class UpdatePageResultJson : BasePageResultJson
  51. {
  52. }
  53. /// <summary>
  54. /// 查询页面列表返回结果
  55. /// </summary>
  56. public class SearchPagesResultJson : WxJsonResult
  57. {
  58. /// <summary>
  59. /// 查询页面列表返回数据
  60. /// </summary>
  61. public SearchPages_Data data { get; set; }
  62. }
  63. public class SearchPages_Data
  64. {
  65. /// <summary>
  66. /// 页面基本信息
  67. /// </summary>
  68. public List<SearchPages_Data_Page> pages { get; set; }
  69. /// <summary>
  70. /// 商户名下的页面总数
  71. /// </summary>
  72. public int total_count { get; set; }
  73. }
  74. public class SearchPages_Data_Page : WxJsonResult
  75. {
  76. /// <summary>
  77. /// 页面的备注信息
  78. /// </summary>
  79. public string comment { get; set; }
  80. /// <summary>
  81. /// 在摇一摇页面展示的副标题
  82. /// </summary>
  83. public string description { get; set; }
  84. /// <summary>
  85. /// 在摇一摇页面展示的图片
  86. /// </summary>
  87. public string icon_url { get; set; }
  88. /// <summary>
  89. /// 摇周边页面唯一ID
  90. /// </summary>
  91. public long page_id { get; set; }
  92. /// <summary>
  93. /// 跳转链接
  94. /// </summary>
  95. public string page_url { get; set; }
  96. /// <summary>
  97. /// 在摇一摇页面展示的主标题
  98. /// </summary>
  99. public string title { get; set; }
  100. }
  101. }