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

接口调整

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