From cce4f8845ef738056bcae535d94d05efee6f123d Mon Sep 17 00:00:00 2001
From: "Ray.Hao" <1490493387@qq.com>
Date: Fri, 13 Sep 2024 08:24:27 +0800
Subject: [PATCH] =?UTF-8?q?wip:=20=E5=9F=BA=E7=A1=80=E6=A1=86=E6=9E=B6?=
=?UTF-8?q?=E5=90=8C=E6=AD=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/constant/RedisConstants.java | 11 ++
.../system/controller/MenuController.java | 7 +-
.../system/controller/UserController.java | 85 ++++++---
.../system/converter/UserConverter.java | 7 +-
.../com/youlai/system/enums/ContactType.java | 19 ++
.../system/model/form/EmailChangeForm.java | 22 +++
.../system/model/form/MobileBindingForm.java | 22 +++
.../system/model/form/PasswordChangeForm.java | 22 +++
.../system/model/form/PasswordResetForm.java | 23 +++
.../system/model/form/UserProfileForm.java | 38 ++++
.../youlai/system/service/MenuService.java | 10 +-
.../youlai/system/service/UserService.java | 71 ++++++--
.../system/service/impl/MenuServiceImpl.java | 10 +-
.../system/service/impl/UserServiceImpl.java | 170 +++++++++++++++++-
14 files changed, 463 insertions(+), 54 deletions(-)
create mode 100644 youlai-system/system-boot/src/main/java/com/youlai/system/enums/ContactType.java
create mode 100644 youlai-system/system-boot/src/main/java/com/youlai/system/model/form/EmailChangeForm.java
create mode 100644 youlai-system/system-boot/src/main/java/com/youlai/system/model/form/MobileBindingForm.java
create mode 100644 youlai-system/system-boot/src/main/java/com/youlai/system/model/form/PasswordChangeForm.java
create mode 100644 youlai-system/system-boot/src/main/java/com/youlai/system/model/form/PasswordResetForm.java
create mode 100644 youlai-system/system-boot/src/main/java/com/youlai/system/model/form/UserProfileForm.java
diff --git a/youlai-common/common-base/src/main/java/com/youlai/common/constant/RedisConstants.java b/youlai-common/common-base/src/main/java/com/youlai/common/constant/RedisConstants.java
index a95b76b89..4cfb4ad5c 100644
--- a/youlai-common/common-base/src/main/java/com/youlai/common/constant/RedisConstants.java
+++ b/youlai-common/common-base/src/main/java/com/youlai/common/constant/RedisConstants.java
@@ -53,4 +53,15 @@ public interface RedisConstants {
*/
String PRODUCT_SKUS_LOCK_PREFIX = "product:skus:lock:";
+ /**
+ * 手机验证码缓存前缀
+ */
+
+ String MOBILE_VERIFICATION_CODE_PREFIX = "verification_code:mobile:";
+
+ /**
+ * 邮箱验证码缓存前缀
+ */
+ String EMAIL_VERIFICATION_CODE_PREFIX = "verification_code:email:";
+
}
diff --git a/youlai-system/system-boot/src/main/java/com/youlai/system/controller/MenuController.java b/youlai-system/system-boot/src/main/java/com/youlai/system/controller/MenuController.java
index 062941ffd..407d0113e 100644
--- a/youlai-system/system-boot/src/main/java/com/youlai/system/controller/MenuController.java
+++ b/youlai-system/system-boot/src/main/java/com/youlai/system/controller/MenuController.java
@@ -48,8 +48,11 @@ public class MenuController {
@Operation(summary = "菜单下拉列表")
@GetMapping("/options")
- public Result listMenuOptions() {
- List