Commit e7c3f7f7 authored by wux's avatar wux

bug299:处理重复提交的问题

parent 1d575edc
...@@ -48,6 +48,7 @@ public class AppMessageLeaveController { ...@@ -48,6 +48,7 @@ public class AppMessageLeaveController {
@PutMapping("/reply") @PutMapping("/reply")
@ApiOperation("回复留言") @ApiOperation("回复留言")
@PreAuthenticated @PreAuthenticated
@Idempotent(timeout = 5)
public CommonResult<Boolean> reply(@Valid @RequestBody MessageLeaveReplyReqVO replyReqVO) { public CommonResult<Boolean> reply(@Valid @RequestBody MessageLeaveReplyReqVO replyReqVO) {
replyReqVO.setReplyUserId(WebFrameworkUtils.getLoginUserId()); replyReqVO.setReplyUserId(WebFrameworkUtils.getLoginUserId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment