文档
测试

08、离线推荐

GET
http://localhost:8080/product/offline

接口描述

离线推荐

请求参数

参数名
类型
描述
必填
username
string
用户名
必填
score
float
评分
必填

响应参数

参数名
类型
描述
必填
code
string
示例:200
必填
msg
string
示例:suceess
必填
data
array
数据列表
必填
productId
int
示例:14103
必填
name
string
示例:SanDisk 闪迪 microSDXC Class10 64GB至尊高速移动存储卡 UHS-1制式 读写速度最高可达30MB/s
必填
imgUrl
string
示例:https://images-cn-4.ssl-images-amazon.com/images/I/41mU1iHKkkL._SX300_QL70_.jpg
必填
score
float
示例:4.519975786924939
必填
categories
string
示例:存储设备|存储卡|电脑/办公
必填
tags
string
示例:存储卡|SD卡|容量挺大的|闪迪|速度快|好用
必填

响应示例

``` { "code": "200", "msg": "suceess", "data": [ { "productId": 14103, "name": "SanDisk 闪迪 microSDXC Class10 64GB至尊高速移动存储卡 UHS-1制式 读写速度最高可达30MB/s", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/41mU1iHKkkL._SX300_QL70_.jpg", "score": 4.519975786924939, "categories": "存储设备|存储卡|电脑/办公", "tags": "存储卡|SD卡|容量挺大的|闪迪|速度快|好用" }, { "productId": 122417, "name": "不能承受的生命之轻", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/41MDQrsiY%2BL._SY344_BO1,204,203,200_QL70_.jpg", "score": 4.325619834710744, "categories": "哲学/宗教|人文社科类图书|图书音像", "tags": "哲学类|书|小说|米兰昆德拉|媚俗|好看|看不懂" }, { "productId": 126767, "name": "飞利浦台灯Metallic Silver 流光银FDS500", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/31R6IorDsyL._SY300_QL70_.jpg", "score": 4.2272727272727275, "categories": "灯具|台灯|家具/家装/建材", "tags": "灯具|家具|飞利浦|外观漂亮|到货速度快" }, { "productId": 145218, "name": "好妈妈胜过好老师", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/41DBneaGRwL._SY344_BO1,204,203,200_QL70_.jpg", "score": 4.648459383753502, "categories": "亲子/家教|生活类图书|图书音像", "tags": "书|教育类|写的很好|尹建莉老师的书真好|很有启发|到货速度快|有破损" }, { "productId": 155001, "name": "PHILIPS飞利浦HP8203/00均衡呵护系列负离子功能电吹风", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/41vXzDEzLjL._SY300_QL70_.jpg", "score": 4.545023696682464, "categories": "家用电器|电吹风|个人护理电器", "tags": "飞利浦|电吹风|外观漂亮|质量好|家用电器" }, { "productId": 167781, "name": "Motorola 摩托罗拉 XT788 3G手机(黑色 电信定制)CDMA2000/GSM 双模双待 1.2GHz双核 Android 4.0系统 4.3寸康宁防刮玻璃屏 800M背照式摄像头 9.9mm超薄机身", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/51Cs2hDkupL._SY300_QL70_.jpg", "score": 3.7233009708737863, "categories": "手机|手机通讯|手机/数码", "tags": "摩托罗拉|手机|到货速度快|好用|电子产品" }, { "productId": 203971, "name": "如何说孩子才会听 怎么听孩子才肯说(2012修订版)", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/516txkpnK%2BL._SY344_BO1,204,203,200_QL70_.jpg", "score": 4.495711835334477, "categories": "亲子/家教|生活类图书|图书音像", "tags": "书|教育类|少儿图书|到货速度快|有破损|很有启发" }, { "productId": 253869, "name": "牛津高阶英汉双解词典(第7版)", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/51l0VjtzefL._SY344_BO1,204,203,200_QL70_.jpg", "score": 4.393491124260355, "categories": "图书音像|外语|少儿/教育图书", "tags": "书|英语|词典|好用|不愧是牛津大学出的|经典|到货速度快" }, { "productId": 258451, "name": "Bear小熊 酸奶机 SNJ-10A (加送4个分杯内胆,绿色,亚马逊订制)", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/41YFb2l1IlL._SY300_QL70_.jpg", "score": 4.4431137724550895, "categories": "家用电器|厨房电器|酸奶机", "tags": "小熊|家用电器|好用|酸奶机|到货速度快|质量好" }, { "productId": 294209, "name": "不畏将来 不念过去", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/51DbBJiAbOL._SY344_BO1,204,203,200_QL70_.jpg", "score": 4.312206572769953, "categories": "政治/军事|人文社科类图书|图书音像", "tags": "书|军事类|政治类|好看|有破损|内容不错" }, { "productId": 333125, "name": "素年锦时", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/41Pzfrt4ZVL._SY344_BO1,204,203,200_QL70_.jpg", "score": 4.343629343629344, "categories": "音像|图书音像|有声读物", "tags": "书|有声读物|青春文学|文学|小说|好看|狗血" }, { "productId": 365357, "name": "怀孕40周完美方案(升级畅销版)", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/51NKwb2S-jL._SX258_BO1,204,203,200_QL70_.jpg", "score": 4.328828828828829, "categories": "孕产/胎教|生活类图书|图书音像", "tags": "书|育儿类|教育类|内容丰富|有破损|胎教类|到货速度快|孕妇必读" }, { "productId": 379243, "name": "苏菲的世界", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/41yL3NnPJgL._SY344_BO1,204,203,200_QL70_.jpg", "score": 4.004728132387707, "categories": "图书音像|少儿/教育图书|考试", "tags": "书|哲学类|通俗易懂|值得一读再读" }, { "productId": 406697, "name": "Merries花王纸尿裤S82片(日本进口全新款)适合4-8kg", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/51GdcVwBEeL._SY300_QL70_.jpg", "score": 3.9748953974895396, "categories": "尿裤湿巾|纸尿裤/拉拉裤/纸尿片|母婴/玩具", "tags": "纸尿裤|好用|花王|母婴用品|到货速度快|质量好" }, { "productId": 407816, "name": "\"幸福了吗?(附完整版\"\"白岩松耶鲁大学演讲\"\"光盘1张)\"", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/51PuWq263LL._SY344_BO1,204,203,200_QL70_.jpg", "score": 4.471774193548387, "categories": "图书音像|外语|少儿/教育图书", "tags": "书|教育类|鸡汤|励志|白岩松|演讲" }, { "productId": 437230, "name": "三杯茶", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/5146UDza%2BDL._SY344_BO1,204,203,200_QL70_.jpg", "score": 4.017123287671233, "categories": "小说|文学艺术|图书音像", "tags": "书|散文|文学|写的不错|内容不错" }, { "productId": 474201, "name": "如何说孩子才会听 怎么听孩子才肯说", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/51Qk-5K4BTL._SY344_BO1,204,203,200_QL70_.jpg", "score": 4.468085106382978, "categories": "亲子/家教|生活类图书|图书音像", "tags": "书|教育类|育儿类|内容丰富|很有启发" }, { "productId": 489369, "name": "英语词汇的奥秘(修订本)", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/51dPPX1EIdL._SY344_BO1,204,203,200_QL70_.jpg", "score": 4.413654618473895, "categories": "图书音像|少儿/教育图书|考试", "tags": "书|词典|英语|教育类|写的不错" }, { "productId": 507644, "name": "你是人间的四月天", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/41n9yJRcBTL._SY344_BO1,204,203,200_QL70_.jpg", "score": 4.288819875776397, "categories": "小说|文学艺术|图书音像", "tags": "书|文学|诗词|林徽因|写的不错|真好" }, { "productId": 517740, "name": "步步惊心(新版)(附精美明信片)", "imgUrl": "https://images-cn-4.ssl-images-amazon.com/images/I/51cl56NMqNL._SY344_BO1,204,203,200_QL70_.jpg", "score": 4.577700348432056, "categories": "青春文学|文学艺术|图书音像", "tags": "书|青春文学|步步惊心|垃圾|狗血|呵呵|小说" } ] } ```