|
1 | 1 | package me.chanjar.weixin.mp.bean; |
2 | 2 |
|
| 3 | + |
| 4 | +import com.google.gson.annotations.SerializedName; |
| 5 | + |
| 6 | +import java.util.List; |
| 7 | + |
3 | 8 | /** |
4 | 9 | * 门店基础信息 |
5 | 10 | * @author binarywang(https://github.com/binarywang) |
6 | 11 | * Created by Binary Wang on 2016-09-23. |
7 | 12 | */ |
8 | | -public class WxStoreBaseInfo { |
9 | | - /** sid |
10 | | - 商户自己的id,用于后续审核通过收到poi_id 的通知时,做对应关系。请商户自己保证唯一识别性 |
11 | | - 否 |
12 | | - business_name |
13 | | - 门店名称(仅为商户名,如:国美、麦当劳,不应包含地区、地址、分店名等信息,错误示例:北京国美) |
14 | | - 不能为空,15个汉字或30个英文字符内 |
15 | | - 是 |
16 | | - branch_name |
17 | | - 分店名称(不应包含地区信息,不应与门店名有重复,错误示例:北京王府井店) |
18 | | - 10个字以内 |
19 | | - 是 |
20 | | - province |
21 | | - 门店所在的省份(直辖市填城市名,如:北京市) |
22 | | - 10个字以内 |
23 | | - 是 |
24 | | - city |
25 | | - 门店所在的城市 |
26 | | -10个字以内 |
27 | | - 是 |
28 | | - district |
29 | | - 门店所在地区 |
30 | | -10个字以内 |
31 | | - 是 |
32 | | - address |
33 | | - 门店所在的详细街道地址(不要填写省市信息) |
34 | | - 是 |
35 | | -(东莞等没有“区”行政区划的城市,该字段可不必填写。其余城市必填。) |
36 | | - telephone |
37 | | - 门店的电话(纯数字,区号、分机号均由“-”隔开) |
38 | | - 是 |
39 | | - categories |
40 | | - 门店的类型(不同级分类用“,”隔开,如:美食,川菜,火锅。详细分类参见附件:微信门店类目表) |
41 | | - 是 |
42 | | - offset_type |
43 | | - 坐标类型,1 为火星坐标(目前只能选1) |
44 | | - 是 |
45 | | - longitude |
46 | | - 门店所在地理位置的经度 |
47 | | - 是 |
48 | | - latitude |
49 | | - 门店所在地理位置的纬度(经纬度均为火星坐标,最好选用腾讯地图标记的坐标) |
50 | | - 是 |
| 13 | +public class WxMpStoreBaseInfo { |
| 14 | + public static class WxMpStorePhoto { |
| 15 | + /** |
| 16 | + * 照片url |
| 17 | + */ |
| 18 | + @SerializedName("photo_url") |
| 19 | + private String photoUrl; |
| 20 | + } |
| 21 | + |
| 22 | + /** |
| 23 | + * sid |
| 24 | + * 商户自己的id,用于后续审核通过收到poi_id 的通知时,做对应关系。请商户自己保证唯一识别性 |
| 25 | + */ |
| 26 | + @SerializedName("sid") |
| 27 | + private String sid; |
| 28 | + |
| 29 | + /** |
| 30 | + * business_name |
| 31 | + * 门店名称(仅为商户名,如:国美、麦当劳,不应包含地区、地址、分店名等信息,错误示例:北京国美) |
| 32 | + * 不能为空,15个汉字或30个英文字符内 |
| 33 | + */ |
| 34 | + @SerializedName("business_name") |
| 35 | + private String businessName; |
| 36 | + |
| 37 | + /** |
| 38 | + * branch_name |
| 39 | + * 分店名称(不应包含地区信息,不应与门店名有重复,错误示例:北京王府井店) |
| 40 | + * 10个字以内 |
| 41 | + */ |
| 42 | + @SerializedName("branch_name") |
| 43 | + private String branch_name; |
| 44 | + |
| 45 | + /** |
| 46 | + * province |
| 47 | + * 门店所在的省份(直辖市填城市名,如:北京市) |
| 48 | + * 10个字以内 |
| 49 | + */ |
| 50 | + @SerializedName("province") |
| 51 | + private String province; |
| 52 | + |
| 53 | + /** |
| 54 | + * city |
| 55 | + * 门店所在的城市 |
| 56 | + * 10个字以内 |
| 57 | + */ |
| 58 | + @SerializedName("city") |
| 59 | + private String city; |
| 60 | + |
| 61 | + /** |
| 62 | + * district |
| 63 | + * 门店所在地区 |
| 64 | + * 10个字以内 |
| 65 | + */ |
| 66 | + @SerializedName("district") |
| 67 | + private String district; |
| 68 | + |
| 69 | + /** |
| 70 | + * address |
| 71 | + * 门店所在的详细街道地址(不要填写省市信息) |
| 72 | + * (东莞等没有“区”行政区划的城市,该字段可不必填写。其余城市必填。) |
| 73 | + */ |
| 74 | + @SerializedName("address") |
| 75 | + private String address; |
| 76 | + |
| 77 | + /** |
| 78 | + * telephone |
| 79 | + * 门店的电话(纯数字,区号、分机号均由“-”隔开) |
| 80 | + */ |
| 81 | + @SerializedName("telephone") |
| 82 | + private String telephone; |
| 83 | + |
| 84 | + /** |
| 85 | + * categories |
| 86 | + * 门店的类型(不同级分类用“,”隔开,如:美食,川菜,火锅。详细分类参见附件:微信门店类目表) |
| 87 | + */ |
| 88 | + @SerializedName("categories") |
| 89 | + private String categories; |
| 90 | + |
| 91 | + /** |
| 92 | + * offset_type |
| 93 | + * 坐标类型,1 为火星坐标(目前只能选1) |
| 94 | + */ |
| 95 | + @SerializedName("offset_type") |
| 96 | + private String offset_type; |
| 97 | + |
| 98 | + /** |
| 99 | + * longitude |
| 100 | + * 门店所在地理位置的经度 |
| 101 | + */ |
| 102 | + @SerializedName("longitude") |
| 103 | + private String longitude; |
| 104 | + |
| 105 | + /** |
| 106 | + * latitude |
| 107 | + * 门店所在地理位置的纬度(经纬度均为火星坐标,最好选用腾讯地图标记的坐标) |
| 108 | + */ |
| 109 | + @SerializedName("latitude") |
| 110 | + private String latitude; |
| 111 | + |
| 112 | + /** |
| 113 | + * photo_list |
| 114 | + * 图片列表,url 形式,可以有多张图片,尺寸为 640*340px。必须为上一接口生成的url。 |
| 115 | + * 图片内容不允许与门店不相关,不允许为二维码、员工合照(或模特肖像)、营业执照、无门店正门的街景、地图截图、公交地铁站牌、菜单截图等 |
| 116 | + */ |
| 117 | + @SerializedName("photo_list") |
| 118 | + private List<WxMpStorePhoto> photo_list; |
| 119 | + |
| 120 | + /** |
| 121 | + * recommend |
| 122 | + * 推荐品,餐厅可为推荐菜;酒店为推荐套房;景点为推荐游玩景点等,针对自己行业的推荐内容 |
| 123 | + * 200字以内 |
| 124 | + */ |
| 125 | + @SerializedName("recommend") |
| 126 | + private String recommend; |
| 127 | + |
| 128 | + /** |
| 129 | + * special |
| 130 | + * 特色服务,如免费wifi,免费停车,送货上门等商户能提供的特色功能或服务 |
| 131 | + */ |
| 132 | + @SerializedName("special") |
| 133 | + private String special; |
| 134 | + |
| 135 | + /** |
| 136 | + * introduction |
| 137 | + * 商户简介,主要介绍商户信息等 |
| 138 | + * 300字以内 |
| 139 | + */ |
| 140 | + @SerializedName("introduction") |
| 141 | + private String introduction; |
| 142 | + |
| 143 | + /** |
| 144 | + * open_time |
| 145 | + * 营业时间,24 小时制表示,用“-”连接,如 8:00-20:00 |
| 146 | + */ |
| 147 | + @SerializedName("open_time") |
| 148 | + private String open_time; |
| 149 | + |
| 150 | + /** |
| 151 | + * avg_price |
| 152 | + * 人均价格,大于0 的整数 |
51 | 153 | */ |
| 154 | + @SerializedName("avg_price") |
| 155 | + private Integer avg_price; |
52 | 156 | } |
0 commit comments