StoreResultJson.cs 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. /*----------------------------------------------------------------
  2. Copyright (C) 2018 Senparc
  3. 文件名:StoreResultJson.cs
  4. 文件功能描述:门店相关接口返回结果
  5. 创建标识:Senparc - 20181008
  6. ----------------------------------------------------------------*/
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Linq;
  10. using System.Text;
  11. using Senparc.Weixin.Entities;
  12. using Senparc.Weixin.MP.Entities;
  13. namespace Senparc.Weixin.MP.AdvancedAPIs
  14. {
  15. /// <summary>
  16. /// 拉取门店小程序类目返回结果
  17. /// </summary>
  18. public class GetMerchantCategoryResultJson : WxJsonResult
  19. {
  20. public Data data { get; set; }
  21. }
  22. public class Data
  23. {
  24. public All_Category_Info all_category_info { get; set; }
  25. }
  26. public class All_Category_Info
  27. {
  28. public Category[] categories { get; set; }
  29. }
  30. public class Category
  31. {
  32. public int id { get; set; }
  33. public string name { get; set; }
  34. public int level { get; set; }
  35. public int?[] children { get; set; }
  36. public int father { get; set; }
  37. public Qualify qualify { get; set; }
  38. public int scene { get; set; }
  39. public int sensitive_type { get; set; }
  40. }
  41. public class Qualify
  42. {
  43. public Exter_List[] exter_list { get; set; }
  44. }
  45. public class Exter_List
  46. {
  47. public Inner_List[] inner_list { get; set; }
  48. }
  49. public class Inner_List
  50. {
  51. public string name { get; set; }
  52. }
  53. /// <summary>
  54. /// 查询门店小程序审核结果
  55. /// </summary>
  56. public class GetMerchantAuditInfoResultJson : WxJsonResult
  57. {
  58. public GetMerchantAuditInfo data { get; set; }
  59. }
  60. public class GetMerchantAuditInfo
  61. {
  62. public int audit_id { get; set; }
  63. public int status { get; set; }
  64. public string reason { get; set; }
  65. }
  66. /// <summary>
  67. /// 从腾讯地图拉取省市区信息
  68. /// </summary>
  69. public class GetDistrictResultJson : WxJsonResult
  70. {
  71. public int status { get; set; }
  72. public string message { get; set; }
  73. public string data_version { get; set; }
  74. public Result[][] result { get; set; }
  75. }
  76. public class Result
  77. {
  78. public string id { get; set; }
  79. public string name { get; set; }
  80. public string fullname { get; set; }
  81. public string[] pinyin { get; set; }
  82. public Location location { get; set; }
  83. public int[] cidx { get; set; }
  84. }
  85. public class Location
  86. {
  87. public float lat { get; set; }
  88. public float lng { get; set; }
  89. }
  90. /// <summary>
  91. /// 在腾讯地图中搜索门店返回结果
  92. /// </summary>
  93. public class SearchMapPoiResultJson : WxJsonResult
  94. {
  95. public SearchMapPoidata data { get; set; }
  96. }
  97. public class SearchMapPoidata
  98. {
  99. public SearchMapPoiItem[] item { get; set; }
  100. }
  101. /// <summary>
  102. /// 门店信息
  103. /// </summary>
  104. public class SearchMapPoiItem
  105. {
  106. public string branch_name { get; set; }
  107. public string address { get; set; }
  108. public float longitude { get; set; }
  109. public float latitude { get; set; }
  110. public string telephone { get; set; }
  111. public string category { get; set; }
  112. public string sosomap_poi_uid { get; set; }
  113. public int data_supply { get; set; }
  114. public object[] pic_urls { get; set; }
  115. public object[] card_id_list { get; set; }
  116. }
  117. /// <summary>
  118. /// 在腾讯地图中创建门店返回结果
  119. /// </summary>
  120. public class CreateMapPoiResultJson : WxJsonResult
  121. {
  122. public string error { get; set; }
  123. public CreateMapPoiResultJsonData data { get; set; }
  124. }
  125. public class CreateMapPoiResultJsonData
  126. {
  127. public int base_id { get; set; }
  128. public int rich_id { get; set; }
  129. }
  130. /// <summary>
  131. /// 添加门店返回结果
  132. /// </summary>
  133. public class AddStoreResultJson : WxJsonResult
  134. {
  135. public AddStoreResultData data { get; set; }
  136. }
  137. public class AddStoreResultData
  138. {
  139. public int audit_id { get; set; }
  140. }
  141. /// <summary>
  142. /// 更新门店信息返回结果
  143. /// </summary>
  144. public class UpdateStoreResultJson : WxJsonResult
  145. {
  146. public UpdateStoreResultData data { get; set; }
  147. }
  148. public class UpdateStoreResultData
  149. {
  150. /// <summary>
  151. /// 表示是否需要审核(1表示需要,0表示不需要)
  152. /// </summary>
  153. public int has_audit_id { get; set; }
  154. /// <summary>
  155. /// 表示具体的审核单id
  156. /// </summary>
  157. public string audit_id { get; set; }
  158. }
  159. /// <summary>
  160. /// 获取单个门店信息返回结果
  161. /// </summary>
  162. public class GetStoreInfoResultJson : WxJsonResult
  163. {
  164. public Business business { get; set; }
  165. }
  166. /// <summary>
  167. /// 获取门店信息列表返回结果
  168. /// </summary>
  169. public class GetStoreListResultJson : WxJsonResult
  170. {
  171. public List<Business> business_list { get; set; }
  172. }
  173. public class Business
  174. {
  175. public Base_Info base_info { get; set; }
  176. }
  177. public class Base_Info
  178. {
  179. public string business_name { get; set; }
  180. public string address { get; set; }
  181. public string telephone { get; set; }
  182. public string city { get; set; }
  183. public string province { get; set; }
  184. public float longitude { get; set; }
  185. public float latitude { get; set; }
  186. public Photo_List[] photo_list { get; set; }
  187. public string open_time { get; set; }
  188. public string poi_id { get; set; }
  189. public int status { get; set; }
  190. public string district { get; set; }
  191. public string qualification_num { get; set; }
  192. public string qualification_name { get; set; }
  193. }
  194. public class Photo_List
  195. {
  196. public string photo_url { get; set; }
  197. }
  198. /// <summary>
  199. /// 获取门店小程序配置的卡券返回结果
  200. /// </summary>
  201. public class GetStoreCardResultJson : WxJsonResult
  202. {
  203. public string card_id { get; set; }
  204. }
  205. }