Showing
1 changed file
with
212 additions
and
144 deletions
1 | -# 店铺审核接口服务定义 | ||
2 | ---------------------- | ||
3 | - | ||
4 | -## 添加店铺审核 | ||
5 | - | ||
6 | -> 接口名:`/shops/addCheckShop` | ||
7 | - | ||
8 | -### 入参 | ||
9 | - | ||
10 | -------------------------- | ||
11 | -|属性名称|类型|例子|说明| | ||
12 | -|--------|----|----|----| | ||
13 | -|shopsId|int|15|店铺ID| | ||
14 | -|shopName|String|得宝旗舰店|店铺名称| | ||
15 | -|shopNature|int|1|店铺性质(1 旗舰店 2 专卖店)| | ||
16 | -|shopDomain|String|debao|店铺域名| | ||
17 | -|shopRelation|JSON数组||| | ||
18 | -|createPid|int|1|创建人ID| | ||
19 | -|shopsType|int|1|店铺模式(1 单品店 2 多品店)| | ||
20 | -|shopLogo|String|http://img11.static.yhbimg.com/yhb-img01/2015/09/11/02/01f42dff5d5bd383af1025eea1218cbccc.jpg?imageView/{mode}/w/{width}/h/{height}|店铺logo| | ||
21 | -|shopIntro|String|秉承以设计为核心的创新理念,用专业的思维方式将自然与科技、传统与革新、技艺与时尚三者良好融合,着重面料材质与软式廓型的品质互动,更好的诠释“less is more”的设计理念。|店铺简介| | ||
22 | -|websiteUrl|JSON数组|["www.paperworks.com.cn"]|| | ||
23 | -|otherUrl|JSON数组|["www.paperworks.com.cn","https:\/\/jnby.tmall.com\/"]|| | ||
24 | -|shopAddress|JSON数组||| | ||
25 | -|status|int|0|状态(1 开启 0 关闭)| | ||
26 | -|createTime|int|1441936854|添加时间| | ||
27 | -|updateTime|int|1442312299|修改时间| | ||
28 | ---------------------- | ||
29 | - | ||
30 | -### 返回 | ||
31 | - | ||
32 | -``` json | ||
33 | -{ | ||
34 | - "code":400 | ||
35 | - "message":"店铺已经在审核中" | ||
36 | -} | ||
37 | -{ | ||
38 | - "code":500 | ||
39 | - "message":"操作成功" | ||
40 | -} | ||
41 | -{ | ||
42 | - "code":200 | ||
43 | - "message":"操作成功" | ||
44 | -} | ||
45 | -``` | ||
46 | - | ||
47 | - | ||
48 | -## 获取查看审核详情 | ||
49 | -> 接口名: `/shops/getCheckShopInfo` | ||
50 | - | ||
51 | -### 入参 | ||
52 | - | ||
53 | -------------------------- | ||
54 | -|属性名称|类型|例子|说明| | ||
55 | -|--------|----|----|----| | ||
56 | -|shopsId|int|15|店铺ID| | ||
57 | ---------------------------- | ||
58 | - | ||
59 | -### 返回 | ||
60 | - | ||
61 | -```json | ||
62 | -{ | ||
63 | - "code":400 | ||
64 | - "message":"店铺id有误" | ||
65 | -} | ||
66 | -{ | ||
67 | - "code":500 | ||
68 | - "message":"暂无数据" | ||
69 | -} | ||
70 | -{ | ||
71 | - "code":200, | ||
72 | - "message":"ok", | ||
73 | - "data":{ | ||
74 | - | ||
75 | - } | ||
76 | -} | ||
77 | - | ||
78 | -``` | ||
79 | - | ||
80 | -## 审核通过 | ||
81 | -> 接口名: `/shops/allowShop` | ||
82 | - | ||
83 | -### 入参 | ||
84 | - | ||
85 | -------------------------- | ||
86 | -|属性名称|类型|例子|说明| | ||
87 | -|--------|----|----|----| | ||
88 | -|shopsId|int|15|店铺ID| | ||
89 | ---------------------------- | ||
90 | - | ||
91 | -### 返回 | ||
92 | - | ||
93 | -```json | ||
94 | -{ | ||
95 | - "code":400 | ||
96 | - "message":"店铺信息有误" | ||
97 | -} | ||
98 | -{ | ||
99 | - "code":500 | ||
100 | - "message":"没有待审核的信息" | ||
101 | -} | ||
102 | -{ | ||
103 | - "code":500 | ||
104 | - "message":"更新店铺信息失败" | ||
105 | -} | ||
106 | -{ | ||
107 | - "code":200 | ||
108 | - "message":"更新成功" | ||
109 | -} | ||
110 | -``` | ||
111 | - | ||
112 | -## 审核驳回 | ||
113 | - | ||
114 | -> 接口名:`/shops/rejectShop` | ||
115 | - | ||
116 | -### 入参 | ||
117 | - | ||
118 | -------------------------- | ||
119 | -|属性名称|类型|例子|说明| | ||
120 | -|--------|----|----|----| | ||
121 | -|shopsId|int|15|店铺ID| | ||
122 | -------------------- | ||
123 | - | ||
124 | -### 返回 | ||
125 | - | ||
126 | -```json | ||
127 | -{ | ||
128 | - "code":400, | ||
129 | - "message":"店铺信息有误" | ||
130 | -} | ||
131 | -{ | ||
132 | - "code":500, | ||
133 | - "message":"没有待审核的信息" | ||
134 | -} | ||
135 | -{ | ||
136 | - "code":500, | ||
137 | - "message":"操作失败" | ||
138 | -} | ||
139 | -{ | ||
140 | - "code":200, | ||
141 | - "message":"操作成功", | ||
142 | -} | ||
143 | -``` | ||
144 | - | 1 | +# 店铺审核接口服务定义 |
2 | +--------------------- | ||
3 | + | ||
4 | +## 添加店铺审核 | ||
5 | + | ||
6 | +> 接口名:`/shops/ShopsCheckRest/addCheckShop` | ||
7 | + | ||
8 | +### 入参 | ||
9 | +``` json | ||
10 | +{ | ||
11 | + "shopsId":15, | ||
12 | + "shopName":"得宝旗舰店", | ||
13 | + "shopNature":1, | ||
14 | + "shopDomain":"debao", | ||
15 | + "shopRelation":[{ | ||
16 | + "brandId":355, | ||
17 | + "supplierId":310, | ||
18 | + "agreementEndTime":1485792000, | ||
19 | + "method":"add" | ||
20 | +}, | ||
21 | +{ | ||
22 | + "brandId":178, | ||
23 | + "supplierId":480, | ||
24 | + "agreementEndTime":1459353600, | ||
25 | + "method":"del" | ||
26 | +}], | ||
27 | +"createPid":"1" | ||
28 | +} | ||
29 | +``` | ||
30 | +------------------------- | ||
31 | +|属性名称|类型|例子|说明| | ||
32 | +|--------|----|----|----| | ||
33 | +|shopsId|int|15|店铺ID| | ||
34 | +|shopName|String|得宝旗舰店|店铺名称| | ||
35 | +|shopNature|int|1|店铺性质(1 旗舰店 2 专卖店)| | ||
36 | +|shopDomain|String|debao|店铺域名| | ||
37 | +|shopRelation|JSON数组||| | ||
38 | +|createPid|int|1|创建人ID| | ||
39 | +|shopsType|int|1|店铺模式(1 单品店 2 多品店)| | ||
40 | +|shopLogo|String|http://img11.static.yhbimg.com/yhb-img01/2015/09/11/02/01f42dff5d5bd383af1025eea1218cbccc.jpg?imageView/{mode}/w/{width}/h/{height}|店铺logo| | ||
41 | +|shopIntro|String|秉承以设计为核心的创新理念,用专业的思维方式将自然与科技、传统与革新、技艺与时尚三者良好融合,着重面料材质与软式廓型的品质互动,更好的诠释“less is more”的设计理念。|店铺简介| | ||
42 | +|websiteUrl|JSON数组|["www.paperworks.com.cn"]|| | ||
43 | +|otherUrl|JSON数组|["www.paperworks.com.cn","https:\/\/jnby.tmall.com\/"]|| | ||
44 | +|shopAddress|JSON数组||| | ||
45 | +|status|int|0|状态(1 开启 0 关闭)| | ||
46 | +|createTime|int|1441936854|添加时间| | ||
47 | +|updateTime|int|1442312299|修改时间| | ||
48 | + | ||
49 | +注意:入参中`shopRelation`的json格式,如下: | ||
50 | +```javascript | ||
51 | +[{ | ||
52 | + "brandId":355, | ||
53 | + "supplierId":310, | ||
54 | + "agreementEndTime":1485792000, | ||
55 | + "method":"add" | ||
56 | +}, | ||
57 | +{ | ||
58 | + "brandId":178, | ||
59 | + "supplierId":480, | ||
60 | + "agreementEndTime":1459353600, | ||
61 | + "method":"del" | ||
62 | +}] | ||
63 | +``` | ||
64 | +`websiteUrl`的json格式,如下: | ||
65 | +```javascript | ||
66 | +["网址1","网址2"] | ||
67 | +``` | ||
68 | +`otherUrl`的json格式,如下: | ||
69 | +```javascript | ||
70 | +["网址1","网址2"] | ||
71 | +``` | ||
72 | +`shopAddress`的json格式,如下: | ||
73 | +```javascript | ||
74 | +["地址1","地址2"] | ||
75 | +``` | ||
76 | +--------------------- | ||
77 | + | ||
78 | +### 返回 | ||
79 | + | ||
80 | +``` json | ||
81 | +{ | ||
82 | + "code":400 | ||
83 | + "message":"shopsId is required" | ||
84 | +} | ||
85 | +{ | ||
86 | + "code":400 | ||
87 | + "message":"shopName is required" | ||
88 | +} | ||
89 | +{ | ||
90 | + "code":400 | ||
91 | + "message":"shopNature is required" | ||
92 | +} | ||
93 | +{ | ||
94 | + "code":400 | ||
95 | + "message":"shopDomain is required" | ||
96 | +} | ||
97 | +{ | ||
98 | + "code":400 | ||
99 | + "message":"shopRelation is required" | ||
100 | +} | ||
101 | +{ | ||
102 | + "code":400 | ||
103 | + "message":"createPid is required" | ||
104 | +} | ||
105 | +{ | ||
106 | + "code":400 | ||
107 | + "message":"店铺已经在审核中" | ||
108 | +} | ||
109 | +{ | ||
110 | + "code":200 | ||
111 | + "message":"操作成功" | ||
112 | +} | ||
113 | +``` | ||
114 | + | ||
115 | + | ||
116 | +## 获取查看审核详情 | ||
117 | +> 接口名: `/shops/getCheckShopInfo` | ||
118 | + | ||
119 | +### 入参 | ||
120 | + | ||
121 | +------------------------- | ||
122 | +|属性名称|类型|例子|说明| | ||
123 | +|--------|----|----|----| | ||
124 | +|shopsId|int|15|店铺ID| | ||
125 | +--------------------------- | ||
126 | + | ||
127 | +### 返回 | ||
128 | + | ||
129 | +```json | ||
130 | +{ | ||
131 | + "code":400 | ||
132 | + "message":"店铺id有误" | ||
133 | +} | ||
134 | +{ | ||
135 | + "code":500 | ||
136 | + "message":"暂无数据" | ||
137 | +} | ||
138 | +{ | ||
139 | + "code":200, | ||
140 | + "message":"ok", | ||
141 | + "data":{ | ||
142 | + | ||
143 | + } | ||
144 | +} | ||
145 | + | ||
146 | +``` | ||
147 | + | ||
148 | +## 审核通过 | ||
149 | +> 接口名: `/shops/allowShop` | ||
150 | + | ||
151 | +### 入参 | ||
152 | + | ||
153 | +------------------------- | ||
154 | +|属性名称|类型|例子|说明| | ||
155 | +|--------|----|----|----| | ||
156 | +|shopsId|int|15|店铺ID| | ||
157 | +--------------------------- | ||
158 | + | ||
159 | +### 返回 | ||
160 | + | ||
161 | +```json | ||
162 | +{ | ||
163 | + "code":400 | ||
164 | + "message":"店铺信息有误" | ||
165 | +} | ||
166 | +{ | ||
167 | + "code":500 | ||
168 | + "message":"没有待审核的信息" | ||
169 | +} | ||
170 | +{ | ||
171 | + "code":500 | ||
172 | + "message":"更新店铺信息失败" | ||
173 | +} | ||
174 | +{ | ||
175 | + "code":200 | ||
176 | + "message":"更新成功" | ||
177 | +} | ||
178 | +``` | ||
179 | + | ||
180 | +## 审核驳回 | ||
181 | + | ||
182 | +> 接口名:`/shops/rejectShop` | ||
183 | + | ||
184 | +### 入参 | ||
185 | + | ||
186 | +------------------------- | ||
187 | +|属性名称|类型|例子|说明| | ||
188 | +|--------|----|----|----| | ||
189 | +|shopsId|int|15|店铺ID| | ||
190 | +------------------- | ||
191 | + | ||
192 | +### 返回 | ||
193 | + | ||
194 | +```json | ||
195 | +{ | ||
196 | + "code":400, | ||
197 | + "message":"店铺信息有误" | ||
198 | +} | ||
199 | +{ | ||
200 | + "code":500, | ||
201 | + "message":"没有待审核的信息" | ||
202 | +} | ||
203 | +{ | ||
204 | + "code":500, | ||
205 | + "message":"操作失败" | ||
206 | +} | ||
207 | +{ | ||
208 | + "code":200, | ||
209 | + "message":"操作成功", | ||
210 | +} | ||
211 | +``` | ||
212 | + |
-
Please register or login to post a comment