7 changed files with 84 additions and 25 deletions
@ -0,0 +1,42 @@ |
|||||
|
package com.epmet.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.comment.form.ResiQueryCommentFormDTO; |
||||
|
import com.epmet.resi.group.dto.comment.result.GovCommentResultDTO; |
||||
|
import com.epmet.service.ResiTopicService; |
||||
|
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 话题评论相关接口 |
||||
|
* @Author yinzuomei |
||||
|
* @Date 2020/4/30 16:42 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("topic") |
||||
|
public class ResiTopicCommentController { |
||||
|
@Autowired |
||||
|
private ResiTopicService resiTopicService; |
||||
|
/** |
||||
|
* @Description 政府端群组管理-获取某个话题的评论列表 |
||||
|
* @Param tokenDto |
||||
|
* @Param ResiQueryCommentFormDTO |
||||
|
* @return Result<List<ResiCommentResultDTO>> |
||||
|
* @Author wangc |
||||
|
* @Date 2020.04.01 23:49 |
||||
|
**/ |
||||
|
@PostMapping("topiccomments") |
||||
|
Result<List<GovCommentResultDTO>> topicComments(@LoginUser TokenDto tokenDto, @RequestBody ResiQueryCommentFormDTO queryCommentFormDTO){ |
||||
|
ValidatorUtils.validateEntity(queryCommentFormDTO); |
||||
|
return resiTopicService.topicComments(queryCommentFormDTO); |
||||
|
} |
||||
|
} |
||||
|
|
Loading…
Reference in new issue