@Idempotent 幂等注解,支持 key 指定多个,使用逗号分隔

This commit is contained in:
thinkgem
2025-08-26 15:45:50 +08:00
parent 1e156116ee
commit 4ff2e23780

View File

@@ -178,6 +178,7 @@ public class EmpUserController extends BaseController {
@RequiresPermissions(value={"sys:empUser:edit","sys:empUser:authRole"}, logical=Logical.OR)
@PostMapping(value = "save")
@ResponseBody
//@Idempotent // 幂等示例默认规则10秒内相同的会话和相同的提交内容会提示“请不要频繁操作”
public String save(@Validated EmpUser empUser, @Parameter(description = "操作类型") String op, HttpServletRequest request) {
if (!EmpUser.USER_TYPE_EMPLOYEE.equals(empUser.getUserType())){
return renderResult(Global.FALSE, "非法操作,不能够操作此用户!");