Browse Source

新增我的话题列表接口

feature/yujt_analysisHomeChange
zhangyuan 5 years ago
parent
commit
e7e5910f0e
  1. 15
      epdc-cloud-api/src/main/java/com/elink/esua/epdc/controller/ApiPropertyController.java
  2. 11
      epdc-cloud-api/src/main/java/com/elink/esua/epdc/service/PropertyService.java
  3. 10
      epdc-cloud-api/src/main/java/com/elink/esua/epdc/service/impl/PropertyServiceImpl.java

15
epdc-cloud-api/src/main/java/com/elink/esua/epdc/controller/ApiPropertyController.java

@ -276,4 +276,19 @@ public class ApiPropertyController {
public Result<EventCommentsResultDTO> listOfComments(@LoginUser TokenDto userDetail, TopicCommentsFormDTO topicCommentsFormDTO) {
return propertyService.listOfComments(userDetail, topicCommentsFormDTO);
}
/**
*
* 我的话题列表
*
* @params [userDetail, formDto]
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.topic.result.TopicListResultDTO>>
* @author liuchuang
* @since 2019/11/11 15:04
*/
@GetMapping("topic/listOfMine")
public Result<List<TopicListResultDTO>> listTopicOfMine(@LoginUser TokenDto userDetail, TopicListFormDTO formDto) {
ValidatorUtils.validateEntity(formDto);
return propertyService.listTopicOfMine(userDetail, formDto);
}
}

11
epdc-cloud-api/src/main/java/com/elink/esua/epdc/service/PropertyService.java

@ -208,4 +208,15 @@ public interface PropertyService {
* 评论列表
*/
Result<EventCommentsResultDTO> listOfComments(TokenDto userDetail, TopicCommentsFormDTO topicCommentsFormDTO);
/**
*
* 我的话题列表
*
* @params [userDetail, formDto]
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.topic.result.TopicListResultDTO>>
* @author liuchuang
* @since 2019/11/11 15:50
*/
Result<List<TopicListResultDTO>> listTopicOfMine(TokenDto userDetail, TopicListFormDTO formDto);
}

10
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<GroupDetailForMobileEndResultDTO> getGroupDetail(TokenDto userDetail, String id) {
if (null == userDetail) {
@ -263,4 +261,12 @@ public class PropertyServiceImpl implements PropertyService {
return propertyFeignClient.listOfComments(topicCommentsFormDTO);
}
@Override
public Result<List<TopicListResultDTO>> listTopicOfMine(TokenDto userDetail, TopicListFormDTO formDto) {
if (null == userDetail) {
return new Result().error("获取用户信息失败");
}
formDto.setUserId(userDetail.getUserId());
return propertyFeignClient.listOfTopic(formDto);
}
}

Loading…
Cancel
Save