From 35d2da35b21f4e5dc92fef93d5c8f4297b1e0132 Mon Sep 17 00:00:00 2001
From: landaiqing <3517283258@qq.com>
Date: Mon, 18 Nov 2024 01:12:50 +0800
Subject: [PATCH] :art: updated error handling logic
---
.idea/GOHCache.xml | 89 +++++++------
app/core/api/Dockerfile | 120 ++++++++++++++++++
app/core/api/common/response/response.go | 7 -
app/core/api/common/utils/xss_filter.go | 11 ++
.../generate_rotate_captcha_handler.go | 7 +-
.../generate_slide_basic_captcha_handler.go | 7 +-
.../client/generate_client_id_handler.go | 7 +-
.../comment/dislike_comment_handler.go | 7 +-
.../comment/get_comment_list_handler.go | 7 +-
.../handler/comment/get_reply_list_handler.go | 7 +-
.../handler/comment/like_comment_handler.go | 7 +-
.../handler/comment/submit_comment_handler.go | 7 +-
.../comment/submit_reply_comment_handler.go | 7 +-
.../comment/submit_reply_reply_handler.go | 7 +-
.../oauth/get_gitee_oauth_url_handler.go | 7 +-
.../oauth/get_github_oauth_url_handler.go | 7 +-
.../handler/oauth/get_qq_oauth_url_handler.go | 7 +-
.../oauth/get_wechat_qrcode_handler.go | 7 +-
.../handler/oauth/gitee_callback_handler.go | 8 +-
.../handler/oauth/github_callback_handler.go | 8 +-
.../handler/oauth/qq_callback_handler.go | 8 +-
.../handler/oauth/wechat_callback_handler.go | 8 +-
.../handler/sms/send_sms_by_aliyun_handler.go | 7 +-
.../handler/sms/send_sms_by_smsbao_handler.go | 7 +-
.../handler/sms/send_sms_by_test_handler.go | 7 +-
.../handler/user/account_login_handler.go | 7 +-
.../handler/user/get_user_device_handler.go | 8 +-
.../handler/user/phone_login_handler.go | 7 +-
.../handler/user/refresh_token_handler.go | 7 +-
.../handler/user/reset_password_handler.go | 7 +-
.../captcha/generate_rotate_captcha_logic.go | 2 +-
.../generate_slide_basic_captcha_logic.go | 2 +-
.../logic/client/generate_client_id_logic.go | 2 +-
.../logic/comment/submit_comment_logic.go | 8 +-
.../logic/oauth/get_wechat_qrcode_logic.go | 8 +-
.../logic/sms/send_sms_by_aliyun_logic.go | 4 +-
.../logic/sms/send_sms_by_smsbao_logic.go | 4 +-
.../logic/sms/send_sms_by_test_logic.go | 2 +-
.../logic/user/get_user_device_logic.go | 12 +-
.../internal/logic/user/phone_login_logic.go | 6 +-
.../logic/user/refresh_token_logic.go | 6 +-
.../logic/user/reset_password_logic.go | 8 +-
app/core/api/internal/svc/service_context.go | 5 +-
app/core/api/repository/redis_session/init.go | 7 +-
.../api/resources/language/active.en.toml | 2 +
.../api/resources/language/active.zh.toml | 2 +
go.mod | 20 +--
go.sum | 51 ++------
48 files changed, 395 insertions(+), 170 deletions(-)
create mode 100644 app/core/api/Dockerfile
create mode 100644 app/core/api/common/utils/xss_filter.go
diff --git a/.idea/GOHCache.xml b/.idea/GOHCache.xml
index aaac738..49b8c27 100644
--- a/.idea/GOHCache.xml
+++ b/.idea/GOHCache.xml
@@ -1318,7 +1318,7 @@
-
+
@@ -1376,6 +1376,13 @@
+
+
+
+
+
+
+
@@ -1405,126 +1412,126 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -1538,56 +1545,56 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -1608,7 +1615,7 @@
-
+