3 changed files with 75 additions and 1 deletions
@ -0,0 +1,44 @@ |
|||||
|
package com.epmet.modules.person.controller; |
||||
|
|
||||
|
import com.epmet.commons.tools.annotation.LoginUser; |
||||
|
import com.epmet.commons.tools.security.dto.TokenDto; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
||||
|
import com.epmet.resi.group.dto.topic.form.CustomerPageFormDTO; |
||||
|
import com.epmet.resi.group.dto.topic.result.ParticipatedTopicUnitResultDTO; |
||||
|
import com.epmet.resi.group.feign.ResiGroupOpenFeignClient; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Description 个人中心-话题 |
||||
|
* @ClassName TopicController |
||||
|
* @Auth wangc |
||||
|
* @Date 2020-11-12 14:33 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("topic") |
||||
|
public class TopicController { |
||||
|
|
||||
|
@Autowired |
||||
|
private ResiGroupOpenFeignClient groupFeign; |
||||
|
|
||||
|
/** |
||||
|
* @Description 个人中心-我参与过的话题 |
||||
|
* @param param |
||||
|
* @return java.util.List<com.epmet.resi.group.dto.topic.result.ParticipatedTopicUnitResultDTO> |
||||
|
* @author wangc |
||||
|
* @date 2020.11.11 23:20 |
||||
|
*/ |
||||
|
@PostMapping("my-part-topics") |
||||
|
Result<List<ParticipatedTopicUnitResultDTO>> myPartTopics(@LoginUser TokenDto token , @RequestBody CustomerPageFormDTO param){ |
||||
|
param.setUserId(token.getUserId()); |
||||
|
ValidatorUtils.validateEntity(param); |
||||
|
return groupFeign.myPartTopics(param); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue