From 77c4055c72fc5d0e0becaf3c410ab700f26c220b Mon Sep 17 00:00:00 2001 From: lrj <owen.stl@gmail.com> Date: 星期六, 04 十月 2025 18:57:09 +0800 Subject: [PATCH] fix(auth): 避免在 JWT 过滤器中消费原始 GraphQL 请求体,防止下游读取为空引发 400 --- backend/src/main/java/com/rongyichuang/judge/dto/request/JudgeInput.java | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/backend/src/main/java/com/rongyichuang/judge/dto/request/JudgeInput.java b/backend/src/main/java/com/rongyichuang/judge/dto/request/JudgeInput.java index 1070444..efeadcf 100644 --- a/backend/src/main/java/com/rongyichuang/judge/dto/request/JudgeInput.java +++ b/backend/src/main/java/com/rongyichuang/judge/dto/request/JudgeInput.java @@ -6,6 +6,7 @@ private Long id; private String name; private String phone; + private String password; private Integer gender; private String description; private String title; @@ -39,6 +40,14 @@ this.phone = phone; } + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + public Integer getGender() { return gender; } -- Gitblit v1.8.0