|
|
@ -17,7 +17,6 @@ |
|
|
|
|
|
|
|
package com.epmet.modules.act.controller; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.api.R; |
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
@ -27,10 +26,7 @@ import com.epmet.resi.group.dto.act.form.CommentFormDTO; |
|
|
|
import com.epmet.resi.group.dto.act.form.CommentQueryFormDTO; |
|
|
|
import com.epmet.resi.group.dto.act.result.CommentResultDTO; |
|
|
|
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 org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
@ -59,7 +55,7 @@ public class ActCommentController { |
|
|
|
@PostMapping("submit") |
|
|
|
public Result submitComment(@LoginUser TokenDto tokenDto, @RequestBody CommentFormDTO formDTO) { |
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
|
formDTO.setCommentContent(tokenDto.getCustomerId()); |
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
ValidatorUtils.validateEntity(formDTO,CommentFormDTO.AddUserShowGroup.class,CommentFormDTO.AddUserInternalGroup.class); |
|
|
|
actCommentService.submitComment(formDTO); |
|
|
|
return new Result(); |
|
|
|