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/resources/graphql/schema.graphqls |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/backend/src/main/resources/graphql/schema.graphqls b/backend/src/main/resources/graphql/schema.graphqls
index df3bbd3..96f318a 100644
--- a/backend/src/main/resources/graphql/schema.graphqls
+++ b/backend/src/main/resources/graphql/schema.graphqls
@@ -7,6 +7,14 @@
 type Query {
     # 娴嬭瘯鏌ヨ
     hello: String
+    
+    # 搴旂敤閰嶇疆鏌ヨ
+    appConfig: AppConfig
+}
+
+# 搴旂敤閰嶇疆绫诲瀷
+type AppConfig {
+    mediaBaseUrl: String!
 }
 
 # 鍙樻洿鏍圭被鍨�  

--
Gitblit v1.8.0