Changes between Version 1 and Version 2 of web-intf-2


Ignore:
Timestamp:
12/30/2011 05:22:41 PM (14 years ago)
Author:
leijingtang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • web-intf-2

    v1 v2  
    327327=== 2.9 /intf/home.json === 
    328328{{{ 
    329      
     329    HTTP请求方式:get 
     330    是否需要登录:否 
     331    提交参数:req-enc:请求时字符编码,缺省是UTF-8   
     332              resp-enc:响应时字符编码,缺省是UTF-8  
     333    其他规则:该接口获取的是摄影部落首页的4个分类中已经裁剪好的正方形图片;人像读取6张图片,另外3个分类各读取4张,一共18张。 
     334    返回参数: 
     335    { 
     336    "focus-img":[ 
     337        { 
     338            "is-ad":0, 
     339            "small-img-src":"http://xxxx.jpg", 
     340            "album-name":"我是标题" 
     341        }, 
     342        { 
     343            "is-ad":0, 
     344            "small-img-src":"http://xxxx.jpg", 
     345            "album-name":"我是标题" 
     346        }, 
     347        { 
     348            "is-ad":1, 
     349            "small-img-src":"http://xxxx.jpg", 
     350            "album-name":"我是标题" 
     351        }, 
     352        { 
     353            "is-ad":1, 
     354            "small-img-src":"http://xxxx.jpg", 
     355            "album-name":"我是标题" 
     356        } 
     357    ], 
     358    "portrait":[ 
     359        { 
     360            "uid":2323, 
     361            "small-img-src":"http://img.pconline.com.cn/123.jpg", 
     362            "album-id":1233, 
     363            "theme":"拍摄主题", 
     364            "album-name":"图集名称", 
     365            "nickname":"摄影师昵称", 
     366            "is-picked":0, 
     367            "is-recommend":0, 
     368            "create-time":"yyyy-mm-dd hh:mi", 
     369            "vote":2233, 
     370            "clicks":2332 
     371        } 
     372    ], 
     373    "landscape":[ 
     374        { 
     375            "uid":2323, 
     376            "small-img-src":"http://img.pconline.com.cn/123.jpg", 
     377            "album-id":1233, 
     378            "theme":"拍摄主题", 
     379            "album-name":"图集名称", 
     380            "nickname":"摄影师昵称", 
     381            "is-picked":0, 
     382            "is-recommend":0, 
     383            "create-time":"yyyy-mm-dd hh:mi", 
     384            "vote":2233, 
     385            "clicks":2332 
     386        } 
     387    ] 
     388} 
     389    focus-img:焦点图数组 
     390    is-ad:是否广告,1为是,0为否 
     391    portrait:对应的目录名称 
     392    page-no:请求的页码,第一次为1。 
     393    page-size:每个页面的记录数。 
     394    uid:用户id 
     395    small-img-src:封面图片URL 
     396    album-id:图集ID 
     397    theme:拍摄主题 
     398    album-name:图集名称 
     399    nickname:摄影师昵称 
     400    is-picked:1-精华作品,0-普调作品 
     401    create-time:创建时间 
     402    vote:所得票数 
     403    clicks:点击数 
    330404}}} 
    331405