| | 1 | == 1.首页接口---主题列表 == |
| | 2 | 原型 http://trac.pc.com.cn/mobile/pototype/ideas/youjiapin/req1.0.0/ |
| | 3 | 结构类似: |
| | 4 | |
| | 5 | {{{ |
| | 6 | { |
| | 7 | "total":100, |
| | 8 | "pageIndex":1, |
| | 9 | "pageSize":10, |
| | 10 | "topics":[ |
| | 11 | { |
| | 12 | "id":10, |
| | 13 | "bigImg":"http:xxxx", |
| | 14 | "name":"topicName", |
| | 15 | "description":"topic descript" |
| | 16 | }, |
| | 17 | { |
| | 18 | "id":11, |
| | 19 | "bigImg":"http:xxxx", |
| | 20 | "name":"topicName", |
| | 21 | "description":"topic descript" |
| | 22 | } |
| | 23 | ] |
| | 24 | } |
| | 25 | |
| | 26 | }}} |
| | 27 | 返回参数说明:[[BR]] |
| | 28 | total:主题总数量[[BR]] |
| | 29 | pageIndex:分页用页码[[BR]] |
| | 30 | pageSize:分页用每页数量[[BR]] |
| | 31 | topics:主题数组[[BR]] |
| | 32 | id:主题的id[[BR]] |
| | 33 | bigImg:主题图片[[BR]] |
| | 34 | name:主题名称[[BR]] |
| | 35 | description:主题描述 |
| | 36 | |
| | 37 | == 2.主题接口 == |
| | 38 | 原型 http://trac.pc.com.cn/mobile/pototype/ideas/youjiapin/req1.0.0/ |
| | 39 | |
| | 40 | {{{ |
| | 41 | { |
| | 42 | "total":20, |
| | 43 | "pageIndex":1, |
| | 44 | "pageSize":10, |
| | 45 | "products":[ |
| | 46 | { |
| | 47 | "id":10, |
| | 48 | "bigImg":"http:xxxx", |
| | 49 | "name":"productName", |
| | 50 | "collectCount":1234 |
| | 51 | }, |
| | 52 | { |
| | 53 | "id":11, |
| | 54 | "bigImg":"http:xxxx", |
| | 55 | "name":"productName", |
| | 56 | "collectCount":1234 |
| | 57 | } |
| | 58 | ] |
| | 59 | } |
| | 60 | |
| | 61 | }}} |
| | 62 | |
| | 63 | 返回参数说明:[[BR]] |
| | 64 | total:单品总数量[[BR]] |
| | 65 | pageIndex:分页用页码[[BR]] |
| | 66 | pageSize:分页用每页数量[[BR]] |
| | 67 | products:单品数组[[BR]] |
| | 68 | id:单品的id[[BR]] |
| | 69 | bigImg:单品图片[[BR]] |
| | 70 | name:单品名称[[BR]] |
| | 71 | collectCount:单品被收藏的数量[[BR]] |
| | 72 | |
| | 73 | == 3.单品库首页 == |
| | 74 | 原型 http://trac.pc.com.cn/mobile/pototype/ideas/youjiapin/req1.0.0/ |
| | 75 | |
| | 76 | {{{ |
| | 77 | { |
| | 78 | "items":{ |
| | 79 | "323":{ |
| | 80 | "level":1, |
| | 81 | "seq":1, |
| | 82 | "name":"客厅", |
| | 83 | "image":"http:xxxx", |
| | 84 | "type":"node" |
| | 85 | }, |
| | 86 | "324":{ |
| | 87 | "level":2, |
| | 88 | "seq":2, |
| | 89 | "name":"沙发", |
| | 90 | "image":"http:xxxx", |
| | 91 | "type":"node" |
| | 92 | }, |
| | 93 | "325":{ |
| | 94 | "level":1, |
| | 95 | "seq":1, |
| | 96 | "name":"睡房", |
| | 97 | "image":"http:xxxx", |
| | 98 | "type":"node" |
| | 99 | }, |
| | 100 | "326":{ |
| | 101 | "level":2, |
| | 102 | "seq":2, |
| | 103 | "name":"床", |
| | 104 | "image":"http:xxxx", |
| | 105 | "type":"node" |
| | 106 | } |
| | 107 | }, |
| | 108 | "relations":{ |
| | 109 | "$node id value1":[ |
| | 110 | 323, |
| | 111 | 324 |
| | 112 | ], |
| | 113 | "$node id value2":[ |
| | 114 | 325, |
| | 115 | 326 |
| | 116 | ] |
| | 117 | } |
| | 118 | } |
| | 119 | |
| | 120 | }}} |
| | 121 | 返回参数说明:[[BR]] |
| | 122 | id:节点ID[[BR]] |
| | 123 | level:节点的层次,1表示根节点。[[BR]] |
| | 124 | seq:节点的顺序,同级节点之间的显示顺序。从1开始[[BR]] |
| | 125 | name:节点名称[[BR]] |
| | 126 | image:图片url[[BR]] |
| | 127 | type:节点类型,node表示该节点的下级还是一个节点,article表示该节点的下级已经是文章ID[[BR]] |
| | 128 | $node id value:节点ID的值。以节点ID的值作为key,该节点的子节点集合作为value,建立节点之间的关联关系,实现节点的向下遍历。[[BR]] |
| | 129 | |
| | 130 | |
| | 131 | == 4.单品库列表页-----搜索结果----猜你喜欢 == |
| | 132 | http://trac.pc.com.cn/mobile/pototype/ideas/youjiapin/req1.0.0/ |
| | 133 | |
| | 134 | {{{ |
| | 135 | { |
| | 136 | "total":100, |
| | 137 | "pageIndex":1, |
| | 138 | "pageSize":10, |
| | 139 | "products":[ |
| | 140 | { |
| | 141 | "name":"法丽莎家具 欧式床 实木床 田园婚床 双人床 1.8 1.5米", |
| | 142 | "price":"¥2699.00", |
| | 143 | "oldPrice":"¥2899.00", |
| | 144 | "collectCount":1234 |
| | 145 | }, |
| | 146 | { |
| | 147 | "name":"法丽莎家具 欧式床 实木床 田园婚床 双人床 1.8 1.5米", |
| | 148 | "price":"¥2699.00", |
| | 149 | "oldPrice":"¥2899.00", |
| | 150 | "collectCount":1234 |
| | 151 | } |
| | 152 | ] |
| | 153 | } |
| | 154 | |
| | 155 | }}} |
| | 156 | 返回参数说明:[[BR]] |
| | 157 | total:单品总数量[[BR]] |
| | 158 | pageIndex:分页用页码[[BR]] |
| | 159 | pageSize:分页用每页数量[[BR]] |
| | 160 | products:单品数组[[BR]] |
| | 161 | products:产品数组[[BR]] |
| | 162 | name:产品名[[BR]] |
| | 163 | price:当前价格、优惠价格[[BR]] |
| | 164 | oldPrice:旧价格[[BR]] |
| | 165 | collectCount:收藏数量[[BR]] |
| | 166 | |
| | 167 | |
| | 168 | |
| | 169 | == 5.测试页 == |
| | 170 | http://trac.pc.com.cn/mobile/pototype/ideas/youjiapin/req1.0.0/ |
| | 171 | |
| | 172 | {{{ |
| | 173 | { |
| | 174 | "count":6, |
| | 175 | "tests":[ |
| | 176 | { |
| | 177 | "testId":1, |
| | 178 | "testDescription":"请选择上述两款产品中你较喜欢的产品", |
| | 179 | "MultiSelect":0, |
| | 180 | "selection":[ |
| | 181 | { |
| | 182 | "selectionId":11, |
| | 183 | "image":"http://xxx" |
| | 184 | }, |
| | 185 | { |
| | 186 | "selectionId":12, |
| | 187 | "image":"http://xxx" |
| | 188 | } |
| | 189 | ] |
| | 190 | }, |
| | 191 | { |
| | 192 | "testId":2, |
| | 193 | "testDescription":"请选择上述两款产品中你较喜欢的产品", |
| | 194 | "MultiSelect":1, |
| | 195 | "selection":[ |
| | 196 | { |
| | 197 | "selectionId":21, |
| | 198 | "image":"http://xxx" |
| | 199 | }, |
| | 200 | { |
| | 201 | "selectionId":22, |
| | 202 | "image":"http://xxx" |
| | 203 | } |
| | 204 | ] |
| | 205 | } |
| | 206 | ] |
| | 207 | } |
| | 208 | |
| | 209 | }}} |
| | 210 | 返回参数说明:[[BR]] |
| | 211 | count:测试页数量[[BR]] |
| | 212 | tests:测试页数组[[BR]] |
| | 213 | testId:测试页id[[BR]] |
| | 214 | testDescription:测试页[[BR]] |
| | 215 | MultiSelect:是否多选,1是,0否[[BR]] |
| | 216 | selection:选项数组[[BR]] |
| | 217 | selectionId:选项id[[BR]] |
| | 218 | image:图片url[[BR]] |
| | 219 | |
| | 220 | |
| | 221 | == 6.终端页 == |
| | 222 | http://trac.pc.com.cn/mobile/pototype/ideas/youjiapin/req1.0.0/ |
| | 223 | |
| | 224 | {{{ |
| | 225 | { |
| | 226 | "productName":"法丽莎家具 欧式床 实木床 田园婚床 双人床 1.8 1.5米", |
| | 227 | "price":"¥2699.00", |
| | 228 | "oldPrice":"¥2899.00", |
| | 229 | "seller":"发丽莎家居旗舰店", |
| | 230 | "image":[ |
| | 231 | "http://xxxx", |
| | 232 | "http://xxxx", |
| | 233 | "http://xxxx" |
| | 234 | ], |
| | 235 | "commentCount":1234, |
| | 236 | "comments":[ |
| | 237 | { |
| | 238 | "nickName":"b_小贝贝", |
| | 239 | "time":"9月3日 15:23", |
| | 240 | "face":"http://asdfasdf", |
| | 241 | "content":"她家的包包看起来还不错,有谁买过的,求推荐!" |
| | 242 | }, |
| | 243 | { |
| | 244 | "nickName":"Blanch_213", |
| | 245 | "time":"9月3日 15:53", |
| | 246 | "face":"http://asdfasdf", |
| | 247 | "content":"简单,但太普遍了!" |
| | 248 | } |
| | 249 | ] |
| | 250 | } |
| | 251 | |
| | 252 | }}} |
| | 253 | 返回参数说明:[[BR]] |
| | 254 | productName:产品名[[BR]] |
| | 255 | price:价格、优惠价格 [[BR]] |
| | 256 | oldPrice:原价格[[BR]] |
| | 257 | seller:商家[[BR]] |
| | 258 | image:图片数组[[BR]] |
| | 259 | commentCount:评论总数[[BR]] |
| | 260 | comments:评论数组[[BR]] |
| | 261 | nickName:昵称[[BR]] |
| | 262 | time:评论时间[[BR]] |
| | 263 | face:头像[[BR]] |
| | 264 | content:评论内容[[BR]] |
| | 265 | |
| | 266 | == 7.用户信息 == |
| | 267 | |
| | 268 | {{{ |
| | 269 | http://trac.pc.com.cn/mobile/pototype/ideas/youjiapin/req1.0.1/ |
| | 270 | { |
| | 271 | "username":"imoveto1", |
| | 272 | "session":"xxxx", |
| | 273 | "userid":"userid", |
| | 274 | "remark":"坚持世上一切美好的事物,哈哈!", |
| | 275 | "face":"http://xxxx", |
| | 276 | "collectCount":34, |
| | 277 | "readHistory":134 |
| | 278 | } |
| | 279 | }}} |
| | 280 | |
| | 281 | username:用户名[[BR]] |
| | 282 | session:session[[BR]] |
| | 283 | userid:用户id[[BR]] |
| | 284 | remark:备注[[BR]] |
| | 285 | face:头像[[BR]] |
| | 286 | collectCount:收藏夹数量[[BR]] |
| | 287 | readHistory:浏览历史[[BR]] |
| | 288 | |