From 24df28e53f1379aa90081ff1c5de560366e460fc Mon Sep 17 00:00:00 2001 From: landaiqing Date: Wed, 18 Dec 2024 01:08:25 +0800 Subject: [PATCH] :sparkles: complete mobile image upload --- .idea/GOHCache.xml | 107 +++++++++++++-- app/core/api/core.api | 27 ++++ app/core/api/core.go | 3 - app/core/api/etc/core.yaml | 2 +- app/core/api/internal/handler/routes.go | 22 +++ .../handler/upscale/upload_image_handler.go | 35 +++++ .../websocket/file_websocket_handler.go | 15 +++ .../logic/upscale/upload_image_logic.go | 54 ++++++++ .../logic/websocket/file_websocket_logic.go | 125 ++++++++++++++++++ .../websocket/message_websocket_logic.go | 105 +++------------ app/core/api/internal/types/types.go | 6 + .../api/resources/language/active.en.toml | 5 +- .../api/resources/language/active.zh.toml | 3 + go.mod | 67 +++++----- go.sum | 86 ++++++++++++ 15 files changed, 526 insertions(+), 136 deletions(-) create mode 100644 app/core/api/internal/handler/upscale/upload_image_handler.go create mode 100644 app/core/api/internal/handler/websocket/file_websocket_handler.go create mode 100644 app/core/api/internal/logic/upscale/upload_image_logic.go create mode 100644 app/core/api/internal/logic/websocket/file_websocket_logic.go diff --git a/.idea/GOHCache.xml b/.idea/GOHCache.xml index 3059282..497580e 100644 --- a/.idea/GOHCache.xml +++ b/.idea/GOHCache.xml @@ -115,6 +115,13 @@ + + + + + + @@ -122,6 +129,20 @@ + + + + + + + + + + + + @@ -612,6 +633,13 @@ + + + + + + @@ -854,38 +882,50 @@ + + + + + + @@ -1390,6 +1437,13 @@ + + + + + + @@ -1467,7 +1521,7 @@ - + + + + + + + @@ -1722,10 +1788,23 @@ + + + + + + + -