Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tanpu-community
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
探普后端
tanpu-community
Commits
de0c3756
Commit
de0c3756
authored
Jul 08, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口调整
parent
64f31adc
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
17 deletions
+12
-17
ThemeQo.java
...c/main/java/com/tanpu/community/api/beans/qo/ThemeQo.java
+0
-3
TopicSearchReq.java
...m/tanpu/community/api/beans/req/topic/TopicSearchReq.java
+2
-1
AdminController.java
.../java/com/tanpu/community/controller/AdminController.java
+2
-2
CommentController.java
...ava/com/tanpu/community/controller/CommentController.java
+3
-3
HomePageController.java
...va/com/tanpu/community/controller/HomePageController.java
+1
-1
ThemeController.java
.../java/com/tanpu/community/controller/ThemeController.java
+3
-6
TopicController.java
.../java/com/tanpu/community/controller/TopicController.java
+1
-1
No files found.
community-api/src/main/java/com/tanpu/community/api/beans/qo/ThemeQo.java
View file @
de0c3756
...
@@ -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
;
...
...
community-api/src/main/java/com/tanpu/community/api/beans/req/topic/TopicSearchReq.java
View file @
de0c3756
...
@@ -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
;
}
}
community-service/src/main/java/com/tanpu/community/controller/AdminController.java
View file @
de0c3756
...
@@ -37,7 +37,7 @@ public class AdminController {
...
@@ -37,7 +37,7 @@ public class AdminController {
}
}
@ApiOperation
(
"单个话题详细数据"
)
@ApiOperation
(
"单个话题详细数据"
)
@
Pos
tMapping
(
"/detailData"
)
@
Ge
tMapping
(
"/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
();
}
}
@
Pos
tMapping
(
value
=
"/dataAnalyse"
)
@
Ge
tMapping
(
value
=
"/dataAnalyse"
)
@ApiOperation
(
"话题数据分析"
)
@ApiOperation
(
"话题数据分析"
)
@ResponseBody
@ResponseBody
public
CommonResp
<
TopicDataAnalysDTO
>
dataAnalyse
(
@RequestParam
String
topicId
)
throws
MissingServletRequestParameterException
{
public
CommonResp
<
TopicDataAnalysDTO
>
dataAnalyse
(
@RequestParam
String
topicId
)
throws
MissingServletRequestParameterException
{
...
...
community-service/src/main/java/com/tanpu/community/controller/CommentController.java
View file @
de0c3756
...
@@ -30,7 +30,7 @@ public class CommentController {
...
@@ -30,7 +30,7 @@ public class CommentController {
}
}
@ApiOperation
(
"查看评论"
)
@ApiOperation
(
"查看评论"
)
@
Pos
tMapping
(
value
=
"/queryComment"
)
@
Ge
tMapping
(
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
(
"点赞评论"
)
@
Pos
tMapping
(
value
=
"/likeComment"
)
@
Ge
tMapping
(
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
(
"举报评论"
)
@
Pos
tMapping
(
value
=
"/reportComment"
)
@
Ge
tMapping
(
value
=
"/reportComment"
)
@ResponseBody
@ResponseBody
public
CommonResp
<
Void
>
reportComment
(
@RequestParam
String
commentId
){
public
CommonResp
<
Void
>
reportComment
(
@RequestParam
String
commentId
){
//todo
//todo
...
...
community-service/src/main/java/com/tanpu/community/controller/HomePageController.java
View file @
de0c3756
...
@@ -34,7 +34,7 @@ public class HomePageController {
...
@@ -34,7 +34,7 @@ public class HomePageController {
return
CommonResp
.
success
(
"修改成功"
);
return
CommonResp
.
success
(
"修改成功"
);
}
}
@
Ge
tMapping
(
value
=
"/queryMyFans"
)
@
Pos
tMapping
(
value
=
"/queryMyFans"
)
@ApiOperation
(
"查询关注/粉丝列表"
)
@ApiOperation
(
"查询关注/粉丝列表"
)
@ResponseBody
@ResponseBody
public
CommonResp
<
Page
<
FollowQo
>>
queryMyFans
(
@RequestBody
QueryFollowReq
req
)
{
public
CommonResp
<
Page
<
FollowQo
>>
queryMyFans
(
@RequestBody
QueryFollowReq
req
)
{
...
...
community-service/src/main/java/com/tanpu/community/controller/ThemeController.java
View file @
de0c3756
...
@@ -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
(
"圈子首页-推荐/关注"
)
@
Ge
tMapping
(
value
=
"/list"
)
@
Pos
tMapping
(
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
(
"话题详情页-最新/最热"
)
@
Ge
tMapping
(
value
=
"/listByTopic"
)
@
Pos
tMapping
(
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"
;
...
...
community-service/src/main/java/com/tanpu/community/controller/TopicController.java
View file @
de0c3756
...
@@ -27,7 +27,7 @@ public class TopicController {
...
@@ -27,7 +27,7 @@ public class TopicController {
private
UserHolder
userHolder
;
private
UserHolder
userHolder
;
@
Ge
tMapping
(
value
=
"/list"
)
@
Pos
tMapping
(
value
=
"/list"
)
@ApiOperation
(
"APP全部话题页面,可搜索"
)
@ApiOperation
(
"APP全部话题页面,可搜索"
)
@ResponseBody
@ResponseBody
public
CommonResp
<
Page
<
TopicTitileQo
>>
getTopicBriefInfoList
(
TopicSearchReq
req
){
public
CommonResp
<
Page
<
TopicTitileQo
>>
getTopicBriefInfoList
(
TopicSearchReq
req
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment