From cc0d8da7504ac30c040faeb5fee6937a5cbd1fbf Mon Sep 17 00:00:00 2001 From: SOR <3272194354@qq.com> Date: Thu, 25 Jun 2026 13:24:47 +0800 Subject: [PATCH] feat: websocket support --- .idea/gradle.xml | 1 + .idea/misc.xml | 3 + .idea/vcs.xml | 1 + backend/build.gradle.kts | 1 - ...ppApplication.kt => BackendApplication.kt} | 4 +- .../sor2171/backend/config/SecurityConfig.kt | 44 ++-- .../sor2171/backend/config/WebSocketConfig.kt | 31 +++ .../{ => v1}/AuthorizeController.kt | 39 ++-- .../entity/{RestBean.kt => ApiResponse.kt} | 18 +- .../backend/exception/ValidationController.kt | 6 +- .../sor2171/backend/filter/FlowLimitFilter.kt | 4 +- .../sor2171/backend/handler/TestHandler.kt | 20 ++ .../backend/handler/v1/ExampleHandler.kt | 20 ++ .../sor2171/backend/service/AccountService.kt | 13 +- .../service/impl/AccountServiceImpl.kt | 215 +++++------------- .../service/v1/AuthorizationService.kt | 156 +++++++++++++ .../com/github/sor2171/backend/utils/Const.kt | 4 + .../main/resources/application-example.yaml | 3 - ...ionTests.kt => BackendApplicationTests.kt} | 0 19 files changed, 353 insertions(+), 230 deletions(-) rename backend/src/main/kotlin/com/github/sor2171/backend/{CareerppApplication.kt => BackendApplication.kt} (75%) create mode 100644 backend/src/main/kotlin/com/github/sor2171/backend/config/WebSocketConfig.kt rename backend/src/main/kotlin/com/github/sor2171/backend/controller/{ => v1}/AuthorizeController.kt (65%) rename backend/src/main/kotlin/com/github/sor2171/backend/entity/{RestBean.kt => ApiResponse.kt} (60%) create mode 100644 backend/src/main/kotlin/com/github/sor2171/backend/handler/TestHandler.kt create mode 100644 backend/src/main/kotlin/com/github/sor2171/backend/handler/v1/ExampleHandler.kt create mode 100644 backend/src/main/kotlin/com/github/sor2171/backend/service/v1/AuthorizationService.kt rename backend/src/test/kotlin/com/github/sor2171/backend/{CareerppApplicationTests.kt => BackendApplicationTests.kt} (100%) diff --git a/.idea/gradle.xml b/.idea/gradle.xml index cc93eef..2944ede 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -1,5 +1,6 @@ +