StoreResultJson.cs 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. 
  2. #region Apache License Version 2.0
  3. /*----------------------------------------------------------------
  4. Copyright 2019 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd.
  5. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
  6. except in compliance with the License. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software distributed under the
  9. License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  10. either express or implied. See the License for the specific language governing permissions
  11. and limitations under the License.
  12. Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md
  13. ----------------------------------------------------------------*/
  14. #endregion Apache License Version 2.0
  15. /*----------------------------------------------------------------
  16. Copyright(C) 2017 Senparc
  17. 文件名:StoreResultJson.cs
  18. 文件功能描述:门店相关接口返回结果
  19. 创建标识:Senparc - 20150513
  20. 修改标识:Senparc - 20170222
  21. 修改描述:v14.3.128 完善GetStoreList_BaseInfo信息
  22. ----------------------------------------------------------------*/
  23. using System.Collections.Generic;
  24. using Senparc.Weixin.Entities;
  25. namespace Senparc.Weixin.MP.AdvancedAPIs.Poi
  26. {
  27. /// <summary>
  28. /// 查询门店信息返回结果
  29. /// </summary>
  30. public class GetStoreResultJson : WxJsonResult
  31. {
  32. /// <summary>
  33. /// 门店信息
  34. /// </summary>
  35. public GetStore_Business business { get; set; }
  36. }
  37. public class GetStore_Business
  38. {
  39. /// <summary>
  40. /// 查询门店基础信息
  41. /// </summary>
  42. public GetStoreBaseInfo base_info { get; set; }
  43. }
  44. /// <summary>
  45. /// 查询门店基础信息
  46. /// </summary>
  47. public class GetStoreBaseInfo : StoreBaseInfo
  48. {
  49. /// <summary>
  50. /// 门店是否可用状态。1 表示系统错误、2 表示审核中、3 审核通过、4 审核驳回。当该字段为1、2、4 状态时,poi_id 为空
  51. /// </summary>
  52. public int available_state { get; set; }
  53. /// <summary>
  54. /// 扩展字段是否正在更新中。1 表示扩展字段正在更新中,尚未生效,不允许再次更新; 0 表示扩展字段没有在更新中或更新已生效,可以再次更新
  55. /// </summary>
  56. public int update_status { get; set; }
  57. }
  58. /// <summary>
  59. /// 查询门店列表返回结果
  60. /// </summary>
  61. public class GetStoreListResultJson : WxJsonResult
  62. {
  63. public List<GetStoreList_Business> business_list { get; set; }
  64. /// <summary>
  65. /// 门店总数量
  66. /// </summary>
  67. public string total_count { get; set; }
  68. }
  69. public class GetStoreList_Business
  70. {
  71. public GetStoreList_BaseInfo base_info { get; set; }
  72. }
  73. public class GetStoreList_BaseInfo
  74. {
  75. #region 数据示例
  76. /*
  77. 数据示例:
  78. 为审核通过,有poi_id,全部字段;第二条为审核不通过,仅有基础字段;第三条为审核中,仅有基础字段。
  79. {
  80. "errcode":0,
  81. "errmsg":"ok"
  82. "business_list":[
  83. {"base_info":{
  84. "sid":"101",
  85. "business_name":"麦当劳",
  86. "branch_name":"艺苑路店",
  87. "address":"艺苑路11号",
  88. "telephone":"020-12345678",
  89. "categories":["美食,快餐小吃"],
  90. "city":"广州市",
  91. "province":"广东省",
  92. "offset_type":1,
  93. "longitude":115.32375,
  94. "latitude":25.097486,
  95. "photo_list":[{"photo_url":"http: ...."}],
  96. "introduction":"麦当劳是全球大型跨国连锁餐厅,1940 年创立于美国,在世界上大约拥有3 万间分店。主要售卖汉堡包,以及薯条、炸鸡、汽水、冰品、沙拉、水果等快餐食品",
  97. "recommend":"麦辣鸡腿堡套餐,麦乐鸡,全家桶",
  98. "special":"免费wifi,外卖服务",
  99. "open_time":"8:00-20:00",
  100. "avg_price":35,
  101. "poi_id":"285633617",
  102. "available_state":3,
  103. "district":"海珠区",
  104. "update_status":0
  105. }},
  106. {"base_info":{
  107. "sid":"101",
  108. "business_name":"麦当劳",
  109. "branch_name":"北京路店",
  110. "address":"北京路12号",
  111. "telephone":"020-12345689",
  112. "categories":["美食,快餐小吃"],
  113. "city":"广州市",
  114. "province":"广东省",
  115. "offset_type":1,
  116. "longitude":115.3235,
  117. "latitude":25.092386,
  118. "photo_list":[{"photo_url":"http: ...."}],
  119. "introduction":"麦当劳是全球大型跨国连锁餐厅,1940 年创立于美国,在世界上大约拥有3 万间分店。主要售卖汉堡包,以及薯条、炸鸡、汽水、冰品、沙拉、水果等快餐食品",
  120. "recommend":"麦辣鸡腿堡套餐,麦乐鸡,全家桶",
  121. "special":"免费wifi,外卖服务",
  122. "open_time":"8:00-20:00",
  123. "avg_price":35,
  124. "poi_id":"285633618",
  125. "available_state":4,
  126. "district":"越秀区",
  127. "update_status":0
  128. }},
  129. {"base_info":{
  130. "sid":"101",
  131. "business_name":"麦当劳",
  132. "branch_name":"龙洞店",
  133. "address":"迎龙路122号",
  134. "telephone":"020-12345659",
  135. "categories":["美食,快餐小吃"],
  136. "city":"广州市",
  137. "province":"广东省",
  138. "offset_type":1,
  139. "longitude":115.32345,
  140. "latitude":25.056686,
  141. "photo_list":[{"photo_url":"http: ...."}],
  142. "introduction":"麦当劳是全球大型跨国连锁餐厅,1940 年创立于美国,在世界上大约拥有3 万间分店。主要售卖汉堡包,以及薯条、炸鸡、汽水、冰品、沙拉、水果等快餐食品",
  143. "recommend":"麦辣鸡腿堡套餐,麦乐鸡,全家桶",
  144. "special":"免费wifi,外卖服务",
  145. "open_time":"8:00-20:00",
  146. "avg_price":35,
  147. "poi_id":"285633619",
  148. "available_state":2,
  149. "district":"天河区",
  150. "update_status":0
  151. }},
  152. ],
  153. "total_count":"3",
  154. }
  155. */
  156. #endregion
  157. public string sid { get; set; }
  158. /// <summary>
  159. /// 审核通过才会返回此字段
  160. /// </summary>
  161. public string poi_id { get; set; }
  162. /// <summary>
  163. /// 门店名称(仅为商户名,如:国美、麦当劳,不应包含地区、店号等信息,错误示例:北京国美)
  164. /// </summary>
  165. public string business_name { get; set; }
  166. /// <summary>
  167. /// 分店名称(不应包含地区信息、不应与门店名重复,错误示例:北京王府井店)
  168. /// </summary>
  169. public string branch_name { get; set; }
  170. /// <summary>
  171. /// 门店所在的详细街道地址(不要填写省市信息)
  172. /// </summary>
  173. public string address { get; set; }
  174. public string telephone { get; set; }
  175. public List<string> categories { get; set; }
  176. public string city { get; set; }
  177. public string province { get; set; }
  178. public int offset_type { get; set; }
  179. public double longitude { get; set; }
  180. public double latitude { get; set; }
  181. public List<GetStoreList_BaseInfo_PhotoList> photo_list { get; set; }
  182. public string introduction { get; set; }
  183. public string recommend { get; set; }
  184. public string special { get; set; }
  185. public string open_time { get; set; }
  186. public int avg_price { get; set; }
  187. /// <summary>
  188. /// 门店是否可用状态。1 表示系统错误、2 表示审核中、3 审核通过、4 审核驳回。当该字段为1、2、4 状态时,poi_id 为空
  189. /// </summary>
  190. public int available_state { get; set; }
  191. public string district { get; set; }
  192. public int update_status { get; set; }
  193. }
  194. /// <summary>
  195. /// 获取门店类目表返回结果
  196. /// </summary>
  197. public class GetCategoryResult : WxJsonResult
  198. {
  199. public List<string> category_list { get; set; }
  200. }
  201. public class GetStoreList_BaseInfo_PhotoList
  202. {
  203. public string photo_url { get; set; }
  204. }
  205. }