Commit de0c3756 authored by 刘基明's avatar 刘基明

接口调整

parent 64f31adc
......@@ -27,9 +27,6 @@ public class ThemeQo {
@ApiModelProperty(value = "内容")
private List<ThemeContentQo> content;
@ApiModelProperty(value = "作者id")
private String authorId;
......
......@@ -7,8 +7,9 @@ import lombok.Data;
@Data
public class TopicSearchReq {
@ApiModelProperty(value = "搜索关键字")
@ApiModelProperty(value = "搜索关键字,可以为空")
private String searchKeyword;
@ApiModelProperty(value = "分页")
private Pageable page;
}
......@@ -37,7 +37,7 @@ public class AdminController {
}
@ApiOperation("单个话题详细数据")
@PostMapping("/detailData")
@GetMapping("/detailData")
@ResponseBody
public CommonResp<TopicDO> selectOne(@RequestParam String topicId) throws MissingServletRequestParameterException {
if (StringUtils.isEmpty(topicId)){
......@@ -71,7 +71,7 @@ public class AdminController {
return CommonResp.success();
}
@PostMapping(value = "/dataAnalyse")
@GetMapping(value = "/dataAnalyse")
@ApiOperation("话题数据分析")
@ResponseBody
public CommonResp<TopicDataAnalysDTO> dataAnalyse(@RequestParam String topicId) throws MissingServletRequestParameterException {
......
......@@ -30,7 +30,7 @@ public class CommentController {
}
@ApiOperation("查看评论")
@PostMapping(value = "/queryComment")
@GetMapping(value = "/queryComment")
@ResponseBody
public CommonResp<List<CommentQo>> queryComment(@RequestParam String themeId){
//todo
......@@ -40,7 +40,7 @@ public class CommentController {
}
@ApiOperation("点赞评论")
@PostMapping(value = "/likeComment")
@GetMapping(value = "/likeComment")
@ResponseBody
public CommonResp<Void> likeComment(@RequestParam String commentId){
//todo
......@@ -49,7 +49,7 @@ public class CommentController {
}
@ApiOperation("举报评论")
@PostMapping(value = "/reportComment")
@GetMapping(value = "/reportComment")
@ResponseBody
public CommonResp<Void> reportComment(@RequestParam String commentId){
//todo
......
......@@ -34,7 +34,7 @@ public class HomePageController {
return CommonResp.success("修改成功");
}
@GetMapping(value = "/queryMyFans")
@PostMapping(value = "/queryMyFans")
@ApiOperation("查询关注/粉丝列表")
@ResponseBody
public CommonResp<Page<FollowQo>> queryMyFans(@RequestBody QueryFollowReq req) {
......
......@@ -2,14 +2,13 @@ package com.tanpu.community.controller;
import com.tanpu.common.api.CommonResp;
import com.tanpu.community.api.beans.req.theme.ForwardThemeReq;
import com.tanpu.community.api.beans.qo.MainTextQo;
import com.tanpu.community.api.beans.qo.ThemeQo;
import com.tanpu.community.api.beans.req.theme.CreateThemeReq;
import com.tanpu.community.api.beans.req.theme.ForwardThemeReq;
import com.tanpu.community.api.beans.req.theme.ThemeListByTopicReq;
import com.tanpu.community.api.beans.req.theme.ThemeListReq;
import com.tanpu.community.manager.ThemeManager;
import com.tanpu.community.service.FollowRelService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -26,8 +25,6 @@ public class ThemeController {
@Autowired
private ThemeManager themeManager;
@Autowired
private FollowRelService followRelService;
@ApiOperation("发表主题")
@PostMapping(value = "/publish")
......@@ -41,7 +38,7 @@ public class ThemeController {
@ApiOperation("圈子首页-推荐/关注")
@GetMapping(value = "/list")
@PostMapping(value = "/list")
@ResponseBody
public CommonResp<List<ThemeQo>> selectInterestList(@RequestBody ThemeListReq req) {
String userId = "liujm";
......@@ -52,7 +49,7 @@ public class ThemeController {
@ApiOperation("话题详情页-最新/最热")
@GetMapping(value = "/listByTopic")
@PostMapping(value = "/listByTopic")
@ResponseBody
public CommonResp<List<ThemeQo>> getThemeMainText(@RequestBody ThemeListByTopicReq req) {
String userId = "liujm";
......
......@@ -27,7 +27,7 @@ public class TopicController {
private UserHolder userHolder;
@GetMapping(value = "/list")
@PostMapping(value = "/list")
@ApiOperation("APP全部话题页面,可搜索")
@ResponseBody
public CommonResp<Page<TopicTitileQo>> getTopicBriefInfoList(TopicSearchReq req){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment