Changes between Version 1 and Version 2 of app2.0/01_topic


Ignore:
Timestamp:
02/04/2015 04:54:50 PM (11 years ago)
Author:
pengzhanxuan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • app2.0/01_topic

    v1 v2  
    1 #爆料 
    2  
    3 [按时间获取最近的热门爆料](#按时间获取最近的热门爆料) 
    4    
    5 [赞或者踩](#赞或者踩) 
    6  
    7 [栏目爆料列表](#栏目爆料列表) 
    8  
    9 [爆料详细信息](#爆料详细信息) 
    10  
    11 [获取爆料正文中的图片集](#获取爆料正文中的图片集) 
    12  
    13 [获取我的爆料](#获取我的爆料) 
    14  
    15 [添加爆料](#添加爆料) 
    16  
    17 [获取爆料赞和踩的数量](#获取爆料赞和踩的数量) 
    18  
    19  
    20 ###按时间获取最近的热门爆料 
     1= 爆料 =  
     2 
     3== 按时间获取最近的热门爆料==  
    214 
    225> topic/getTopicListOfTop.do 
    236 
    24 ***说明*** 
     7**说明** 
    258 
    269按时间获取最近的热门爆料 
    2710 
    28 ***参数*** 
     11**参数** 
    2912 
    3013* section  栏目id,-1表示获取首页推荐的热门爆料 
     
    3417* hd  是否高清图 
    3518 
    36 ***返回*** 
    37 ``` 
     19**返回** 
     20{{{ 
     21#!div style="font-size: 80%" 
     22Code highlighting: 
     23  {{{#!java 
    3824result { 
    3925    pageNo: 1, 
     
    4632        ] 
    4733} 
    48 ``` 
    49  
    50 ---------- 
    51  
    52 ###赞或者踩 
     34  }}} 
     35}}} 
     36 
     37---------- 
     38 
     39== 赞或者踩 == 
    5340 
    5441> /topic/likeAndDislike.do 
    5542 
    56 ***说明*** 
     43**说明** 
    5744 
    5845获取爆料分类 
    5946 
    60 ***参数*** 
     47**参数** 
    6148 
    6249* topicId: 123 
    6350* operate: 0 赞   1 踩 
    6451 
    65 ***返回*** 
    66 ``` 
     52**返回** 
     53{{{ 
     54#!div style="font-size: 80%" 
     55Code highlighting: 
     56  {{{#!java 
    6757result { 
    6858    status: 1 
    6959        msg: '感谢您的投票' 
    7060} 
    71 ``` 
    72  
    73 ---------- 
    74  
    75 ###栏目爆料列表 
     61}}} 
     62 
     63---------- 
     64 
     65== 栏目爆料列表 == 
    7666 
    7767> topic/getTopicList.do 
    7868 
    79 ***说明***     
     69**说明**     
    8070 
    8171根据传入的栏目id,获取对应的爆料 
    8272 
    83 ***请求参数*** 
     73**请求参数** 
    8474 
    8575* pageNo 
     
    8777* sectionId  -1 表示推荐(首页)爆料列表 
    8878 
    89 ***返回*** 
    90  
    91 ``` 
     79**返回** 
     80 
     81{{{ 
     82#!div style="font-size: 80%" 
     83Code highlighting: 
     84  {{{#!java 
    9285result { 
    9386        status: 1 
     
    10295        ] 
    10396} 
    104 ``` 
    105  
    106 ---------- 
    107  
    108 ###爆料详细信息 
     97}}} 
     98 
     99---------- 
     100 
     101== 爆料详细信息 == 
    109102 
    110103> topic/getTopicInfo.do 
    111104 
    112 ***说明*** 
    113  
    114 ***参数*** 
     105**说明** 
     106 
     107**参数** 
    115108 
    116109* topicId 
    117110 
    118 ***返回*** 
    119  
    120 ``` 
     111**返回** 
     112 
     113{{{ 
     114#!div style="font-size: 80%" 
     115Code highlighting: 
     116  {{{#!java 
    121117result: { 
    122118        status: 1 
     
    127123    }     
    128124} 
    129 ``` 
    130  
    131 ---------- 
    132  
    133 ###获取爆料正文中的图片集 
     125}}} 
     126 
     127---------- 
     128 
     129== 获取爆料正文中的图片集 == 
    134130 
    135131> topic/listTopicImages.do 
    136132 
    137 ***说明*** 
     133**说明** 
    138134 
    139135从终端页中获取到所有上传的图片 
    140136 
    141 ***返回*** 
    142 ``` 
     137**返回** 
     138{{{ 
     139#!div style="font-size: 80%" 
     140Code highlighting: 
     141  {{{#!java 
    143142result { 
    144143        status: 1 
     
    149148        ] 
    150149} 
    151 ``` 
    152  
    153 ---------- 
    154  
    155 ###获取我的爆料 
     150}}} 
     151 
     152---------- 
     153 
     154== 获取我的爆料 == 
    156155 
    157156> topic/listMyTopic.do 
    158157 
    159 ***说明*** 
     158**说明** 
    160159 
    161160获取我的爆料 
    162161 
    163 ***参数*** 
     162**参数** 
    164163 
    165164* common_session_id 
     
    168167* status  爆料审核状态 
    169168 
    170 ***返回*** 
    171  
    172 ``` 
     169**返回** 
     170 
     171{{{ 
     172#!div style="font-size: 80%" 
     173Code highlighting: 
     174  {{{#!java 
    173175result { 
    174176        status: 1 
     
    183185        ] 
    184186} 
    185 ``` 
    186  
    187 ---------- 
    188  
    189 ###添加爆料 
     187}}} 
     188 
     189---------- 
     190 
     191== 添加爆料 ==  
    190192 
    191193> topic/addTopic.do 
    192194 
    193 ***说明*** 
     195**说明** 
    194196 
    195197添加爆料 
    196198 
    197 ***参数*** 
     199**参数** 
    198200 
    199201* common_session_id  选填 
     
    202204* content 
    203205 
    204 ***返回*** 
    205  
    206 ``` 
     206**返回** 
     207 
     208{{{ 
     209#!div style="font-size: 80%" 
     210Code highlighting: 
     211  {{{#!java 
    207212result { 
    208213        status: 1 
    209214        msg: '提交成功' 
    210215} 
    211 ``` 
    212  
    213 ---------- 
    214  
    215 ###获取爆料赞和踩的数量 
     216}}} 
     217 
     218---------- 
     219 
     220== 获取爆料赞和踩的数量 == 
    216221 
    217222> topic/getTopicLikeAndDislikeCount.do 
    218223 
    219 ***说明*** 
     224**说明** 
    220225 
    221226添加爆料 
    222227 
    223 ***参数*** 
     228**参数** 
    224229 
    225230* topicId 
    226231 
    227 ***返回*** 
    228  
    229 ``` 
     232**返回** 
     233 
     234{{{ 
     235#!div style="font-size: 80%" 
     236Code highlighting: 
     237  {{{#!java 
    230238result { 
    231239        status: 1 
     
    235243        isVoted: 0  // 是否已投票 
    236244} 
    237 ``` 
     245}}}