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
d85c32de
Commit
d85c32de
authored
Jul 16, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
转发主题
parent
0c78d8a0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
53 deletions
+1
-53
HomePageReq.java
...n/java/com/tanpu/community/api/beans/req/HomePageReq.java
+0
-30
QueryCommentReq.java
...anpu/community/api/beans/req/comment/QueryCommentReq.java
+0
-4
HomePageController.java
...va/com/tanpu/community/controller/HomePageController.java
+1
-19
No files found.
community-api/src/main/java/com/tanpu/community/api/beans/req/HomePageReq.java
deleted
100644 → 0
View file @
0c78d8a0
package
com
.
tanpu
.
community
.
api
.
beans
.
req
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotEmpty
;
@Data
public
class
HomePageReq
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"头像url"
)
@NotEmpty
(
message
=
"头像不能为空"
)
private
String
headImg
;
@ApiModelProperty
(
value
=
"昵称"
)
@NotEmpty
(
message
=
"用户昵称不能为空"
)
private
String
nickName
;
@ApiModelProperty
(
value
=
"个人简介"
)
@NotEmpty
(
message
=
"个人简介不能为空"
)
private
String
introduction
;
@ApiModelProperty
(
value
=
"性别"
)
private
Integer
sex
;
@ApiModelProperty
(
value
=
"地址"
)
private
String
location
;
}
community-api/src/main/java/com/tanpu/community/api/beans/req/comment/QueryCommentReq.java
View file @
d85c32de
...
@@ -5,19 +5,15 @@ import io.swagger.annotations.ApiModel;
...
@@ -5,19 +5,15 @@ import io.swagger.annotations.ApiModel;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.validation.constraints.NotEmpty
;
@ApiModel
(
value
=
"评论查询"
)
@ApiModel
(
value
=
"评论查询"
)
@Data
@Data
public
class
QueryCommentReq
{
public
class
QueryCommentReq
{
@NotEmpty
(
message
=
"主题id不能为空"
)
@ApiModelProperty
(
value
=
"主题Id"
)
@ApiModelProperty
(
value
=
"主题Id"
)
private
String
themeId
;
private
String
themeId
;
@NotEmpty
(
message
=
"page不能为空"
)
@ApiModelProperty
(
value
=
"分页"
)
@ApiModelProperty
(
value
=
"分页"
)
private
Pageable
page
;
private
Pageable
page
;
}
}
community-service/src/main/java/com/tanpu/community/controller/HomePageController.java
View file @
d85c32de
...
@@ -5,7 +5,6 @@ import com.tanpu.common.auth.AuthLogin;
...
@@ -5,7 +5,6 @@ import com.tanpu.common.auth.AuthLogin;
import
com.tanpu.common.auth.UserHolder
;
import
com.tanpu.common.auth.UserHolder
;
import
com.tanpu.community.api.beans.qo.FollowQo
;
import
com.tanpu.community.api.beans.qo.FollowQo
;
import
com.tanpu.community.api.beans.qo.ThemeQo
;
import
com.tanpu.community.api.beans.qo.ThemeQo
;
import
com.tanpu.community.api.beans.req.HomePageReq
;
import
com.tanpu.community.api.beans.req.homepage.FollowRelReq
;
import
com.tanpu.community.api.beans.req.homepage.FollowRelReq
;
import
com.tanpu.community.api.beans.req.homepage.QueryFollowReq
;
import
com.tanpu.community.api.beans.req.homepage.QueryFollowReq
;
import
com.tanpu.community.api.beans.req.homepage.QueryRecordThemeReq
;
import
com.tanpu.community.api.beans.req.homepage.QueryRecordThemeReq
;
...
@@ -35,15 +34,7 @@ public class HomePageController {
...
@@ -35,15 +34,7 @@ public class HomePageController {
@Resource
@Resource
private
UserHolder
userHolder
;
private
UserHolder
userHolder
;
@PostMapping
(
value
=
"/editInfo"
)
@ApiOperation
(
"编辑圈子个人资料"
)
@ResponseBody
public
CommonResp
<
String
>
editUserInfo
(
@Validated
@RequestBody
HomePageReq
req
){
String
userId
=
"liujm"
;
// homePageManager.editUserInfo(req,userId);
return
CommonResp
.
success
(
"修改成功"
);
}
@PostMapping
(
value
=
"/followList"
)
@PostMapping
(
value
=
"/followList"
)
@ApiOperation
(
"查询关注/粉丝列表"
)
@ApiOperation
(
"查询关注/粉丝列表"
)
@ResponseBody
@ResponseBody
...
@@ -71,13 +62,4 @@ public class HomePageController {
...
@@ -71,13 +62,4 @@ public class HomePageController {
return
CommonResp
.
success
(
themeManager
.
queryThemesByUser
(
req
,
userId
));
return
CommonResp
.
success
(
themeManager
.
queryThemesByUser
(
req
,
userId
));
}
}
// @PostMapping(value = "/commentThemeList")
// @ApiOperation("用户评论过的帖子列表")
// @ResponseBody
// public CommonResp<List<ThemeQo>> commentThemeList(@RequestBody QueryRecordThemeReq req){
// String userId="123";
//
// return CommonResp.success(themeManager.queryThemesByUser(req,userId));
// }
}
}
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