diff --git a/epdc-cloud-api/src/main/java/com/elink/esua/epdc/controller/ApiPropertyController.java b/epdc-cloud-api/src/main/java/com/elink/esua/epdc/controller/ApiPropertyController.java index 79034bf..6519e9e 100644 --- a/epdc-cloud-api/src/main/java/com/elink/esua/epdc/controller/ApiPropertyController.java +++ b/epdc-cloud-api/src/main/java/com/elink/esua/epdc/controller/ApiPropertyController.java @@ -276,4 +276,19 @@ public class ApiPropertyController { public Result listOfComments(@LoginUser TokenDto userDetail, TopicCommentsFormDTO topicCommentsFormDTO) { return propertyService.listOfComments(userDetail, topicCommentsFormDTO); } + + /** + * + * 我的话题列表 + * + * @params [userDetail, formDto] + * @return com.elink.esua.epdc.commons.tools.utils.Result> + * @author liuchuang + * @since 2019/11/11 15:04 + */ + @GetMapping("topic/listOfMine") + public Result> listTopicOfMine(@LoginUser TokenDto userDetail, TopicListFormDTO formDto) { + ValidatorUtils.validateEntity(formDto); + return propertyService.listTopicOfMine(userDetail, formDto); + } } diff --git a/epdc-cloud-api/src/main/java/com/elink/esua/epdc/service/PropertyService.java b/epdc-cloud-api/src/main/java/com/elink/esua/epdc/service/PropertyService.java index 9cfdc9e..71e24c5 100644 --- a/epdc-cloud-api/src/main/java/com/elink/esua/epdc/service/PropertyService.java +++ b/epdc-cloud-api/src/main/java/com/elink/esua/epdc/service/PropertyService.java @@ -208,4 +208,15 @@ public interface PropertyService { * 评论列表 */ Result listOfComments(TokenDto userDetail, TopicCommentsFormDTO topicCommentsFormDTO); + + /** + * + * 我的话题列表 + * + * @params [userDetail, formDto] + * @return com.elink.esua.epdc.commons.tools.utils.Result> + * @author liuchuang + * @since 2019/11/11 15:50 + */ + Result> listTopicOfMine(TokenDto userDetail, TopicListFormDTO formDto); } diff --git a/epdc-cloud-api/src/main/java/com/elink/esua/epdc/service/impl/PropertyServiceImpl.java b/epdc-cloud-api/src/main/java/com/elink/esua/epdc/service/impl/PropertyServiceImpl.java index 1d0dc19..ec71333 100644 --- a/epdc-cloud-api/src/main/java/com/elink/esua/epdc/service/impl/PropertyServiceImpl.java +++ b/epdc-cloud-api/src/main/java/com/elink/esua/epdc/service/impl/PropertyServiceImpl.java @@ -46,11 +46,9 @@ public class PropertyServiceImpl implements PropertyService { @Autowired private PropertyFeignClient propertyFeignClient; - @Autowired private WxMaSecCheckTask wxMaSecCheckTask; - @Override public Result getGroupDetail(TokenDto userDetail, String id) { if (null == userDetail) { @@ -263,4 +261,12 @@ public class PropertyServiceImpl implements PropertyService { return propertyFeignClient.listOfComments(topicCommentsFormDTO); } + @Override + public Result> listTopicOfMine(TokenDto userDetail, TopicListFormDTO formDto) { + if (null == userDetail) { + return new Result().error("获取用户信息失败"); + } + formDto.setUserId(userDetail.getUserId()); + return propertyFeignClient.listOfTopic(formDto); + } }