|
@@ -19,6 +19,8 @@ import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import javax.validation.Valid;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 意见反馈
|
|
@@ -50,7 +52,7 @@ public class AppFeedbackController {
|
|
|
|
|
|
@PostMapping("/submitFeedback")
|
|
|
@Operation(summary = "提交意见反馈")
|
|
|
- public Result<String> submitFeedback(@RequestBody AppSubmitFeedbackRequestDTO appSubmitFeedbackRequestDTO){
|
|
|
+ public Result<String> submitFeedback( @Valid @RequestBody AppSubmitFeedbackRequestDTO appSubmitFeedbackRequestDTO){
|
|
|
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
AppFeedback appFeedback = new AppFeedback();
|
|
|
BeanUtils.copyProperties(appSubmitFeedbackRequestDTO,appFeedback);
|