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

转发主题

parent 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;
}
...@@ -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;
} }
...@@ -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));
// }
} }
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