Changes between Version 141 and Version 142 of WikiStart/web-intf


Ignore:
Timestamp:
01/07/2013 04:46:34 PM (13 years ago)
Author:
tongyiliang
Comment:

动态条件接口

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart/web-intf

    v141 v142  
    16671667msg: 返回信息 
    16681668 
     1669== 38.动态条件接口 app2.0 ==  
     1670 
     1671http://trac.pc.com.cn/mobile/pototype/ideas/youjiapin/req1.0.0/ [[BR]] 
     1672 
     1673URL:http://youpin.pchouse.com.cn/jsp/intf/condition.jsp  [[BR]] 
     1674测试:http://dev10.pchouse.com.cn:8083/jsp/intf/condition.jsp [[BR]] 
     1675 
     1676请求方式:GET[[BR]] 
     1677 
     1678是否需要登录:否[[BR]] 
     1679 
     1680功能说明:根据用户输入的条件动态变化搜索条件[[BR]] 
     1681 
     1682提交参数: 
     1683{{{ 
     1684categoryId:1 
     1685brands:诗雅轩家具旗舰店 
     1686styles:1 
     1687services:2 
     1688pageNo: 1 
     1689pageSize: 50 
     1690sort:1 
     1691}}} 
     1692提交参数说明:[[BR]] 
     1693categoryId: 类别ID [[BR]] 
     1694brands: 多个品牌 [[BR]] 
     1695styles: 多个风格 [[BR]] 
     1696services: 多个服务 [[BR]] 
     1697pageNo: 页码 [[BR]] 
     1698pageSize: 分页大小 [[BR]] 
     1699sort:1为按最新排序,2最热排序,3为最优惠排序 
     1700 
     1701返回参数:[[BR]] 
     1702{{{ 
     1703{ 
     1704    "brands":[ 
     1705       "优尚美家旗舰店","雷博士红楼专卖店","美迪雅家居旗舰店".................. 
     1706    ], 
     1707    "categorys":[ 
     1708        { 
     1709           "id": 101, 
     1710           "name": "客厅", 
     1711           "children":[ 
     1712               { 
     1713                  "id":212, 
     1714                  "name":"沙发", 
     1715                  "children":[........]   
     1716               } 
     1717           ] 
     1718        }, 
     1719        { 
     1720           "id": 102, 
     1721           "name": "卧室", 
     1722           "children":[ 
     1723               { 
     1724                  "id":222, 
     1725                  "name":"床", 
     1726                  "children":[........]   
     1727               } 
     1728           ] 
     1729        }, 
     1730        ............... 
     1731     ], 
     1732    "styles":[ 
     1733        { 
     1734            "id": 316, 
     1735            "name":"欧式" 
     1736        }, 
     1737        { 
     1738            "id": 317, 
     1739            "name":"田园" 
     1740        }, 
     1741        ............... 
     1742    ], 
     1743    "services":[ 
     1744        { 
     1745            "id": 1, 
     1746            "name":"是否包邮" 
     1747        }, 
     1748        { 
     1749            "id": 2, 
     1750            "name":"是否有发票" 
     1751        }, 
     1752        ............ 
     1753    ], 
     1754    "price":{ 
     1755         "min" : 200, 
     1756         "max" : 8000 
     1757     } 
     1758 
     1759}}} 
     1760返回参数说明:[[BR]] 
     1761 
     1762brands: 品牌数组 [[BR]] 
     1763 
     1764categorys: 分类数组[[BR]] 
     1765    id: 风格ID [[BR]] 
     1766    name:风格名称 [[BR]] 
     1767    children: 分类子结果 [[BR]] 
     1768 
     1769styles: 风格结果数组[[BR]] 
     1770    id:风格ID [[BR]] 
     1771    name:风格名称 [[BR]] 
     1772 
     1773services: 服务结果数组[[BR]] 
     1774    id:服务ID [[BR]] 
     1775    name:服务名称 [[BR]] 
     1776 
     1777price: 价格[[BR]] 
     1778    min: 最低价格 [[BR]] 
     1779    max: 最高价格 [[BR]]     
     1780 
     1781 
    16691782= 用户行为接口 = 
    16701783    家居优品项目希望通过对用户一些行为的收集,分析和识别出用户的一些特征。系统利用用户特征,能够较为准确的给网友进行商品推荐。系统主要对下列