Showing
1 changed file
with
246 additions
and
0 deletions
inferface-document/cms/分类管理.md
0 → 100644
1 | +# 分类管理 | ||
2 | + | ||
3 | +## 首页列表 | ||
4 | +> 'category/getCategoryList' | ||
5 | + | ||
6 | +### 入参 | ||
7 | +----------------------------------------------------------- | ||
8 | +|参数名 |必填 |类型 |示例值 |描述 | | ||
9 | +|------ |---- |---- |------ |---- | | ||
10 | +|platform |否 |string | 1 |类别 iphone ipad android androidpad h5 web platform| | ||
11 | +|status |否 |string |0 |0:关闭;1:开启 | | ||
12 | +### 返回 | ||
13 | + | ||
14 | +``` json | ||
15 | +{ | ||
16 | + "code": 200, | ||
17 | + "data": [ | ||
18 | + { | ||
19 | + "id": 1, | ||
20 | + "parent_id": 0, | ||
21 | + "platform": "iphone,android", | ||
22 | + "sort_ico": "http://img12.static.yhbimg.com/yhb-img01/2015/11/27/05/0239d9aa5a77b4b3ae51da224e71596e88.png?imageView/{mode}/w/{width}/h/{height}", | ||
23 | + "sort_level": 1, | ||
24 | + "sort_name": "男生", | ||
25 | + "sort_name_en": "BOYS", | ||
26 | + "status": 1, | ||
27 | + "sub": [ | ||
28 | + { | ||
29 | + "id": 9, | ||
30 | + "parent_id": 1, | ||
31 | + "platform": "iphone,android,h5", | ||
32 | + "sort_ico": "http://img11.static.yhbimg.com/yhb-img01/2015/07/09/22/01eb4519cf3b1c2f915929509fc38f7e28.png?imageView/{mode}/w/{width}/h/{height}", | ||
33 | + "sort_level": 2, | ||
34 | + "sort_name": "首页", | ||
35 | + "sort_name_en": "index", | ||
36 | + "status": 1 | ||
37 | + }, | ||
38 | + { | ||
39 | + "id": 27, | ||
40 | + "parent_id": 1, | ||
41 | + "platform": "iphone,android,h5", | ||
42 | + "sort_ico": "http://img10.static.yhbimg.com/yhb-img01/2015/07/09/22/01ee7a1da59e2e4aaecb9f7382a14cf977.png?imageView/{mode}/w/{width}/h/{height}", | ||
43 | + "sort_level": 2, | ||
44 | + "sort_name": "品牌一览", | ||
45 | + "sort_name_en": "brand", | ||
46 | + "status": 1 | ||
47 | + }, | ||
48 | + { | ||
49 | + "id": 61, | ||
50 | + "parent_id": 1, | ||
51 | + "platform": "iphone,android,h5", | ||
52 | + "sort_ico": "http://img11.static.yhbimg.com/yhb-img01/2015/07/16/18/01e4e942b4ac7174947d81801f0bf1063d.png?imageView/{mode}/w/{width}/h/{height}", | ||
53 | + "sort_level": 2, | ||
54 | + "sort_name": "折扣专区", | ||
55 | + "sort_name_en": "SALE", | ||
56 | + "status": 1 | ||
57 | + }, | ||
58 | + { | ||
59 | + "id": 63, | ||
60 | + "parent_id": 1, | ||
61 | + "platform": "iphone,android,h5", | ||
62 | + "sort_ico": "http://img11.static.yhbimg.com/yhb-img01/2015/07/16/18/012117763be488772c2e0c141de4c2073f.png?imageView/{mode}/w/{width}/h/{height}", | ||
63 | + "sort_level": 2, | ||
64 | + "sort_name": "新品到着", | ||
65 | + "sort_name_en": "new", | ||
66 | + "status": 1 | ||
67 | + }, | ||
68 | + { | ||
69 | + "id": 71, | ||
70 | + "parent_id": 1, | ||
71 | + "platform": "iphone,android,h5", | ||
72 | + "sort_ico": "http://img10.static.yhbimg.com/yhb-img01/2015/07/16/18/0157f79a03e78d912f2a70b9d61b9bd742.png?imageView/{mode}/w/{width}/h/{height}", | ||
73 | + "sort_level": 2, | ||
74 | + "sort_name": "商品分类", | ||
75 | + "sort_name_en": "classification", | ||
76 | + "status": 1 | ||
77 | + } | ||
78 | + ] | ||
79 | + }, | ||
80 | + { | ||
81 | + "id": 3, | ||
82 | + "parent_id": 0, | ||
83 | + "platform": "iphone,android", | ||
84 | + "sort_ico": "http://img11.static.yhbimg.com/yhb-img01/2015/11/27/05/0154cc26d5ce1754e0d20f4f6f98153f6b.png?imageView/{mode}/w/{width}/h/{height}", | ||
85 | + "sort_level": 1, | ||
86 | + "sort_name": "潮童", | ||
87 | + "sort_name_en": "KIDS", | ||
88 | + "status": 1, | ||
89 | + "sub": [ | ||
90 | + { | ||
91 | + "id": 55, | ||
92 | + "parent_id": 3, | ||
93 | + "platform": "iphone,android,h5", | ||
94 | + "sort_ico": "http://img11.static.yhbimg.com/yhb-img01/2015/07/10/01/013f21096178d425637712c6b913d18c40.png?imageView/{mode}/w/{width}/h/{height}", | ||
95 | + "sort_level": 2, | ||
96 | + "sort_name": "首页", | ||
97 | + "sort_name_en": "Index", | ||
98 | + "status": 1 | ||
99 | + }, | ||
100 | + { | ||
101 | + "id": 79, | ||
102 | + "parent_id": 3, | ||
103 | + "platform": "iphone,android,h5", | ||
104 | + "sort_ico": "http://img10.static.yhbimg.com/yhb-img01/2015/07/31/17/017eaae8479ac388aa6ea5364ac4ba470a.png?imageView/{mode}/w/{width}/h/{height}", | ||
105 | + "sort_level": 2, | ||
106 | + "sort_name": "上衣", | ||
107 | + "sort_name_en": "T", | ||
108 | + "status": 1 | ||
109 | + } | ||
110 | + ] | ||
111 | + } | ||
112 | + ], | ||
113 | + "md5": "0f6e54a3910ce6e3e9f4b207ca8886af", | ||
114 | + "message": "entranceManagementBos" | ||
115 | +} | ||
116 | + | ||
117 | +``` | ||
118 | + | ||
119 | +## 根据 ID 加载实体 | ||
120 | +> 'category/addCategory' | ||
121 | + | ||
122 | +### 入参 | ||
123 | + | ||
124 | +----------------------------------------------------------- | ||
125 | +|参数名 |必填 |类型 |示例值 |描述 | | ||
126 | +|------ |---- |---- |------ |---- | | ||
127 | +|sortName |是 |string | 分类名称 |分类名称| | ||
128 | +|sortNameEn |否 |string | sortName |分类英文名称| | ||
129 | +|sortIco |否 |string | http://img11.static.yhbimg.com/yhb-img01/2016/03/04/05/01bdf3bf1da3405725be763540d6601144.jpg?imageView/{mode}/w/{width}/h/{height} |小图标| | ||
130 | +|sortIcoBig |否 |string | 200 |大图标| | ||
131 | +|sortUrl |否 |string | {"action":"go.attention","url":"http://admin.portal.yohobuy.com/operations/category/add"} |跳转链接| | ||
132 | +|firstSortId |否 |string | 1 |一级分类| | ||
133 | +|secondSortId |否 |string | 11 |二级分类| | ||
134 | +|threadSortId |否 |string | 121 |三级分类| | ||
135 | +|platform |否 |string | 100 |显示平台| | ||
136 | +|orderBy |否 |string | 1 |排序| | ||
137 | +|isNew |否 |string | N |是否新品| | ||
138 | +|isHot |否 |string | N |是否热门| | ||
139 | +|contentCode |否 |string | 3212321 |位置码| | ||
140 | +|separativeSign |否 |string | N |分隔符| | ||
141 | +|sortNameColor |否 |string | #df1b24 |色值| | ||
142 | + | ||
143 | +### 返回 | ||
144 | +``` json | ||
145 | +{ | ||
146 | + "code": 200, | ||
147 | + "data": [], | ||
148 | + "md5": "d751713988987e9331980363e24189ce", | ||
149 | + "message": "新增成功" | ||
150 | +} | ||
151 | +``` | ||
152 | + | ||
153 | +## 更新入口信息 | ||
154 | + | ||
155 | +> 'category/updateCategory' | ||
156 | + | ||
157 | +### 入参 | ||
158 | +----------------------------------------------------------- | ||
159 | +|参数名 |必填 |类型 |示例值 |描述 | | ||
160 | +|------ |---- |---- |------ |---- | | ||
161 | +|id |是 |int | 1 |分类名称| | ||
162 | +|sortName |是 |string | 男生 |分类名称| | ||
163 | +|sortNameEn |否 |string | category_test |分类英文名称| | ||
164 | +|sortIco |否 |string | http://img11.static.yhbimg.com/yhb-img01/2016/03/04/05/01bdf3bf1da3405725be763540d6601144.jpg?imageView/{mode}/w/{width}/h/{height} |小图标| | ||
165 | +|sortIcoBig |否 |string | 200 |大图标| | ||
166 | +|sortUrl |否 |string | {"action":"go.attention","url":"http://admin.portal.yohobuy.com/operations/category/add"} |跳转链接| | ||
167 | +|firstSortId |否 |string | 1 |一级分类| | ||
168 | +|secondSortId |否 |string | 11 |二级分类| | ||
169 | +|threadSortId |否 |string | 121 |三级分类| | ||
170 | +|platform |否 |string | 100 |显示平台| | ||
171 | +|orderBy |否 |string | 1 |排序| | ||
172 | +|isNew |否 |string | N |是否新品| | ||
173 | +|isHot |否 |string | N |是否热门| | ||
174 | +|contentCode |否 |string | 3212321 |位置码| | ||
175 | +|separativeSign |否 |string | N |分隔符| | ||
176 | +|sortNameColor |否 |string | #df1b24 |色值| | ||
177 | + | ||
178 | +### 返回 | ||
179 | +{ | ||
180 | + "code": 200, | ||
181 | + "data": [], | ||
182 | + "md5": "d751713988987e9331980363e24189ce", | ||
183 | + "message": "更新成功" | ||
184 | +} | ||
185 | + | ||
186 | +## 更新状态 | ||
187 | + | ||
188 | +> 'category/updateCategoryStatus' | ||
189 | + | ||
190 | +### 入参 | ||
191 | + | ||
192 | +----------------------------------------------------------- | ||
193 | +|参数名 |描述|类型 |示例值 |必填 | | ||
194 | +|------ |---- |---- |------ |---- | | ||
195 | +|id |id |Integer | 5 |是| | ||
196 | +|status |1:开启、0:关闭|byte| 1| 是| | ||
197 | + | ||
198 | +### 返回 | ||
199 | +``` json | ||
200 | +{ | ||
201 | + "code": 200, | ||
202 | + "data": [], | ||
203 | + "md5": "d751713988987e9331980363e24189ce", | ||
204 | + "message": "状态更新成功" | ||
205 | +} | ||
206 | +``` | ||
207 | +## 根据id获得对应信息 | ||
208 | +> 'category/getOneCategory' | ||
209 | + | ||
210 | +### 入参 | ||
211 | + | ||
212 | +----------------------------------------------------------- | ||
213 | +|参数名 |描述|类型 |示例值 |必填 | | ||
214 | +|------ |---- |---- |------ |---- | | ||
215 | +|id |id |Integer | 5 |是| | ||
216 | + | ||
217 | +### 返回 | ||
218 | + | ||
219 | +``` json | ||
220 | +{ | ||
221 | + "code": 200, | ||
222 | + "data": { | ||
223 | + "contentCode": "0", | ||
224 | + "createTime": 1436452119, | ||
225 | + "id": 1, | ||
226 | + "isHot": "N", | ||
227 | + "isNew": "N", | ||
228 | + "orderBy": 14, | ||
229 | + "parentId": 0, | ||
230 | + "platform": "iphone,android", | ||
231 | + "separativeSign": "N", | ||
232 | + "sortCode": "1,0,0,0", | ||
233 | + "sortIco": "http://img12.static.yhbimg.com/yhb-img01/2015/11/27/05/0239d9aa5a77b4b3ae51da224e71596e88.png?imageView/{mode}/w/{width}/h/{height}", | ||
234 | + "sortIcoBig": "", | ||
235 | + "sortLevel": 1, | ||
236 | + "sortName": "男生", | ||
237 | + "sortNameColor": "", | ||
238 | + "sortNameEn": "BOYS", | ||
239 | + "sortUrl": "{\"action\":\"go.home\",\"url\":\"http://m.yohobuy.com/boys.html\"}", | ||
240 | + "status": 1, | ||
241 | + "updateTime": 1448601594 | ||
242 | + }, | ||
243 | + "md5": "cb1a7798a913ac0fd8eea51f51ec78cb", | ||
244 | + "message": "entranceManagementBos" | ||
245 | +} | ||
246 | +``` |
-
Please register or login to post a comment