Changes between Initial Version and Version 1 of app2.0/02_search


Ignore:
Timestamp:
02/04/2015 05:16:00 PM (11 years ago)
Author:
pengzhanxuan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • app2.0/02_search

    v1 v1  
     1[[TOC]] 
     2 
     3= 搜索 = 
     4 
     5== 搜索接口 == 
     6 
     7> search/listTopicSearch.do 
     8 
     9**说明** 
     10 
     11分类搜索返回5个栏目筛选项     
     12国内电商返回 优惠/发现;国外电商返回 海淘/发现         
     13标签搜索返回5个栏目筛选项     
     14关键词搜索返回关键词 + 5个栏目 
     15 
     16**参数** 
     17 
     18* pageNo 
     19* pageSize 
     20* searchType 1 按分类搜索  2 按电商搜索  3 按标签搜索  4 按关键词搜索 
     21* searchCondition  根据searchType传入具体的内容,分类、电商、标签传入对应的id,关键词直接传入搜索的关键词字符串 
     22* section  搜索栏目,不同类型的搜索出不同的默认值 
     23 
     24**返回** 
     25 
     26{{{#!java 
     27result { 
     28        status: 1 
     29        pageNo: 1 
     30        pageSize: 20, 
     31        total: 100, 
     32        pageTotal: 5, 
     33        msg: '请求成功', 
     34        categoryId: 1, 
     35        data: { 
     36            topics: $topic, 
     37            sections: [$section], 
     38                searchSectionResults: [sectionExtend] 
     39        } 
     40} 
     41}}} 
     42 
     43---------- 
     44 
     45== 搜索热词 == 
     46 
     47> personal/search/listHotSearchTerms.do 
     48 
     49**说明** 
     50 
     51该推荐词又编辑在聚超值后台设置 
     52 
     53**参数** 
     54 
     55**返回** 
     56 
     57{{{#!java 
     58result { 
     59    status: 1 
     60        msg: '请求成功', 
     61        data: [ 
     62                { 
     63                        encodeKey: "%E8%85%95%E8%A1%A8", 
     64                        key: "腕表" 
     65                }, 
     66                { 
     67                        encodeKey: "%E6%88%B7%E5%A4%96", 
     68                        key: "户外" 
     69                }, 
     70                { 
     71                        encodeKey: "%E4%B9%90%E9%AB%98", 
     72                        key: "乐高" 
     73                }, 
     74                { 
     75                        encodeKey: "%E6%B4%97%E6%8A%A4%E7%94%A8%E5%93%81", 
     76                        key: "洗护用品" 
     77                }, 
     78                { 
     79                        encodeKey: "%E8%B6%85%E6%9E%81%E6%9C%AC", 
     80                        key: "超极本" 
     81                }, 
     82                { 
     83                        encodeKey: "%E6%89%8B%E6%9C%BA", 
     84                        key: "手机" 
     85                } 
     86        ] 
     87} 
     88}}} 
     89 
     90---------- 
     91 
     92== 搜索推荐 == 
     93 
     94> personal/search/searchKeywordHint.do 
     95 
     96**说明** 
     97 
     98根据搜索输入推荐的热门搜索词 
     99 
     100**参数** 
     101 
     102**返回** 
     103{{{#!java 
     104result { 
     105    status: 1 
     106        msg: '请求成功', 
     107        data: [ 
     108        { 
     109                count: "556", 
     110                key: "iphone 5s" 
     111        }, 
     112        { 
     113                count: "258", 
     114                key: "ipad air" 
     115        } 
     116        ] 
     117} 
     118}}} 
     119 
     120---------- 
     121