From 93eb6b470773bc49ea6e1a9d4cbd914eb95d525b Mon Sep 17 00:00:00 2001
From: lrj <owen.stl@gmail.com>
Date: 星期二, 30 九月 2025 17:38:04 +0800
Subject: [PATCH] feat: 完善比赛晋级功能并清理测试文件

---
 backend/src/main/resources/graphql/media.graphqls |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/backend/src/main/resources/graphql/media.graphqls b/backend/src/main/resources/graphql/media.graphqls
index 97961f1..8964117 100644
--- a/backend/src/main/resources/graphql/media.graphqls
+++ b/backend/src/main/resources/graphql/media.graphqls
@@ -6,6 +6,15 @@
     
     "鍒犻櫎濯掍綋鏂囦欢"
     deleteMedia(id: ID!): Boolean
+    
+    "淇濆瓨濯掍綋鏂囦欢锛堟柊鐗堟湰锛�"
+    saveMediaV2(input: MediaSaveInput!): MediaSaveResponse!
+    
+    "淇濆瓨閫夋墜澶村儚"
+    savePlayerAvatar(playerId: ID!, path: String!, fileName: String, fileSize: Long): MediaSaveResponse!
+    
+    "淇濆瓨娲诲姩鎶ュ悕闄勪欢"
+    saveActivityPlayerAttachment(activityPlayerId: ID!, path: String!, fileName: String, fileSize: Long, mediaType: Int!): MediaSaveResponse!
 }
 
 extend type Query {
@@ -79,4 +88,24 @@
 "搴旂敤閰嶇疆"
 type AppConfig {
     mediaBaseUrl: String!
+}
+
+"濯掍綋淇濆瓨杈撳叆绫诲瀷锛堟柊鐗堟湰锛�"
+input MediaSaveInput {
+    targetType: String!     # 鐩爣绫诲瀷锛歱layer, activity_player
+    targetId: ID!          # 鐩爣ID
+    path: String!          # COS鏂囦欢璺緞
+    thumbPath: String      # 缂╃暐鍥捐矾寰勶紙鍙�夛級
+    fileName: String       # 鏂囦欢鍚�
+    fileExt: String        # 鏂囦欢鎵╁睍鍚�
+    fileSize: Long         # 鏂囦欢澶у皬锛堝瓧鑺傦級
+    duration: Int          # 瑙嗛鏃堕暱锛堢锛岃棰戞枃浠朵笓鐢級
+    mediaType: Int!        # 濯掍綋绫诲瀷锛�1-鍥剧墖锛�2-瑙嗛锛�3-闊抽锛�4-鏂囨。
+}
+
+"濯掍綋淇濆瓨鍝嶅簲绫诲瀷"
+type MediaSaveResponse {
+    success: Boolean!
+    message: String
+    mediaId: ID
 }
\ No newline at end of file

--
Gitblit v1.8.0