Merge branch 'master' of gitee.com:beijing_hongye_huicheng/lilishop

合并之前代码,解决部分参数校验问题,解决消息发送加入到两个mq队列通道问题,取消两个无效maven依赖
This commit is contained in:
Chopper
2021-09-27 14:31:25 +08:00
9 changed files with 36 additions and 17 deletions

View File

@@ -12,6 +12,8 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.validation.Valid;
/**
* 买家端,意见反馈接口
*
@@ -31,7 +33,7 @@ public class FeedbackBuyerController {
@ApiOperation(value = "添加意见反馈")
@PostMapping()
public ResultMessage<Object> save(Feedback feedback) {
public ResultMessage<Object> save(@Valid Feedback feedback) {
feedback.setUserName(UserContext.getCurrentUser().getNickName());
feedbackService.save(feedback);
return ResultUtil.success();