From cacf02681bfdda7926379d37d58ad1a21e398e1a Mon Sep 17 00:00:00 2001
From: lrj <owen.stl@gmail.com>
Date: 星期六, 04 十月 2025 19:08:12 +0800
Subject: [PATCH] fix(auth): 对无 Authorization 的 GraphQL 请求默认匿名放行到解析层,避免 400/403;公开查询仍优先识别后放行

---
 backend/src/main/java/com/rongyichuang/auth/dto/WxLoginResponse.java |   65 ++++++++++++++++++++++++++++++++
 1 files changed, 65 insertions(+), 0 deletions(-)

diff --git a/backend/src/main/java/com/rongyichuang/auth/dto/WxLoginResponse.java b/backend/src/main/java/com/rongyichuang/auth/dto/WxLoginResponse.java
index 7d29897..505c2ed 100644
--- a/backend/src/main/java/com/rongyichuang/auth/dto/WxLoginResponse.java
+++ b/backend/src/main/java/com/rongyichuang/auth/dto/WxLoginResponse.java
@@ -29,6 +29,31 @@
      * 寰俊浼氳瘽瀵嗛挜
      */
     private String sessionKey;
+    
+    /**
+     * 璇锋眰鏄惁鎴愬姛
+     */
+    private Boolean success;
+    
+    /**
+     * 鍝嶅簲娑堟伅
+     */
+    private String message;
+    
+    /**
+     * 鏄惁鏈夊憳宸ヨ鑹�
+     */
+    private Boolean hasEmployee;
+    
+    /**
+     * 鏄惁鏈夎瘎濮旇鑹�
+     */
+    private Boolean hasJudge;
+    
+    /**
+     * 鏄惁鏈夐�夋墜瑙掕壊
+     */
+    private Boolean hasPlayer;
 
     public WxLoginResponse() {}
 
@@ -86,4 +111,44 @@
     public void setSessionKey(String sessionKey) {
         this.sessionKey = sessionKey;
     }
+
+    public Boolean getSuccess() {
+        return success;
+    }
+
+    public void setSuccess(Boolean success) {
+        this.success = success;
+    }
+
+    public String getMessage() {
+        return message;
+    }
+
+    public void setMessage(String message) {
+        this.message = message;
+    }
+
+    public Boolean getHasEmployee() {
+        return hasEmployee;
+    }
+
+    public void setHasEmployee(Boolean hasEmployee) {
+        this.hasEmployee = hasEmployee;
+    }
+
+    public Boolean getHasJudge() {
+        return hasJudge;
+    }
+
+    public void setHasJudge(Boolean hasJudge) {
+        this.hasJudge = hasJudge;
+    }
+
+    public Boolean getHasPlayer() {
+        return hasPlayer;
+    }
+
+    public void setHasPlayer(Boolean hasPlayer) {
+        this.hasPlayer = hasPlayer;
+    }
 }
\ No newline at end of file

--
Gitblit v1.8.0