StoreBaseInfo.cs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. 文件名:StoreBaseInfo.cs
  17. 文件功能描述:门店基础信息
  18. 创建标识:Senparc - 20150513
  19. ----------------------------------------------------------------*/
  20. using System.Collections.Generic;
  21. namespace Senparc.Weixin.MP.AdvancedAPIs.Poi
  22. {
  23. /// <summary>
  24. /// 可以被修改的门店基础信息
  25. /// </summary>
  26. public class StoreBaseInfoCanBeUpdate
  27. {
  28. /// <summary>
  29. /// 门店的电话
  30. /// 必填
  31. /// </summary>
  32. public string telephone { get; set; }
  33. /// <summary>
  34. /// 图片列表,url 形式,可以有多张图片,尺寸为640*340px。必须为上一接口生成的url
  35. /// 必填
  36. /// </summary>
  37. public List<Store_Photo> photo_list { get; set; }
  38. /// <summary>
  39. /// 推荐品,餐厅可为推荐菜;酒店为推荐套房;景点为推荐游玩景点等,针对自己行业的推荐内容
  40. /// 非必填
  41. /// </summary>
  42. public string recommend { get; set; }
  43. /// <summary>
  44. /// 特色服务,如免费wifi,免费停车,送货上门等商户能提供的特色功能或服务
  45. /// 必填
  46. /// </summary>
  47. public string special { get; set; }
  48. /// <summary>
  49. /// 商户简介,主要介绍商户信息等
  50. /// 非必填
  51. /// </summary>
  52. public string introduction { get; set; }
  53. /// <summary>
  54. /// 营业时间,24 小时制表示,用“-”连接,如8:00-20:00
  55. /// 必填
  56. /// </summary>
  57. public string open_time { get; set; }
  58. /// <summary>
  59. /// 人均价格,大于0 的整
  60. /// 非必填
  61. /// </summary>
  62. public int avg_price { get; set; }
  63. }
  64. /// <summary>
  65. /// 门店基础信息
  66. /// </summary>
  67. public class StoreBaseInfo : StoreBaseInfoCanBeUpdate
  68. {
  69. /// <summary>
  70. /// 商户自己的id,用于后续审核通过收到poi_id 的通知时,做对应关系。请商户自己保证唯一识别性
  71. /// 非必填
  72. /// </summary>
  73. public string sid { get; set; }
  74. /// <summary>
  75. /// 门店名称
  76. /// 必填
  77. /// </summary>
  78. public string business_name { get; set; }
  79. /// <summary>
  80. /// 分店名称
  81. /// 非必填
  82. /// </summary>
  83. public string branch_name { get; set; }
  84. /// <summary>
  85. /// 门店所在的省
  86. /// 必填
  87. /// </summary>
  88. public string province { get; set; }
  89. /// <summary>
  90. /// 门店所在的市
  91. /// 必填
  92. /// </summary>
  93. public string city { get; set; }
  94. /// <summary>
  95. /// 门店所在的区
  96. /// 非必填
  97. /// </summary>
  98. public string district { get; set; }
  99. /// <summary>
  100. /// 门店所在的详细街道地址
  101. /// 必填
  102. /// </summary>
  103. public string address { get; set; }
  104. /// <summary>
  105. /// 门店的类型(酒店、餐饮、购物...)
  106. /// 必填
  107. /// </summary>
  108. public string[] categories { get; set; }
  109. /// <summary>
  110. /// 坐标类型,1 为火星坐标(目前只能选1)
  111. /// </summary>
  112. public int offset_type { get; set; }
  113. /// <summary>
  114. /// 门店所在地理位置的经度(建议使用腾讯地图定位经纬度)
  115. /// 必填
  116. /// </summary>
  117. public string longitude { get; set; }
  118. /// <summary>
  119. /// 门店所在地理位置的纬度
  120. /// 必填
  121. /// </summary>
  122. public string latitude { get; set; }
  123. }
  124. public class Store_Photo
  125. {
  126. /// <summary>
  127. /// 图片Url
  128. /// </summary>
  129. public string photo_url { get; set; }
  130. }
  131. }