From 23823074f61ae78dc2438a8bbb1506f83f7768cc Mon Sep 17 00:00:00 2001 From: pigeon Date: Sun, 7 Jun 2026 15:34:26 +0800 Subject: [PATCH] =?UTF-8?q?docs(plan):=20=E6=A0=87=E8=AE=B0=20Task=202=20(?= =?UTF-8?q?=E5=AE=9E=E4=BD=93=E7=B1=BB=E8=B0=83=E6=95=B4)=20=E5=B7=B2?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - User 实体加 email、UserDetail 删 email、UserSocial 新建 (commit 1de6937) - 添加实际执行说明:UserSocial 屏蔽 BaseEntity 不存在的审计字段 --- .../plans/2026-06-07-multi-login-social-login-plan.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/superpowers/plans/2026-06-07-multi-login-social-login-plan.md b/superpowers/plans/2026-06-07-multi-login-social-login-plan.md index 2f80fff..6e84170 100644 --- a/superpowers/plans/2026-06-07-multi-login-social-login-plan.md +++ b/superpowers/plans/2026-06-07-multi-login-social-login-plan.md @@ -154,7 +154,7 @@ git commit -m "feat(db): 添加第三方登录支持的数据库变更 - Modify: `rui-service/rui-service-user/src/main/java/com/rui/service/user/entity/UserDetail.java` - Create: `rui-service/rui-service-user/src/main/java/com/rui/service/user/entity/UserSocial.java` -- [ ] **Step 1: 在 `User` 实体添加 email 字段** +- [x] **Step 1: 在 `User` 实体添加 email 字段** ```java @Schema(description = "邮箱") @@ -164,7 +164,7 @@ private String email; 在 `phone` 字段后添加,确保字段顺序:username → phone → email → userNo → password... -- [ ] **Step 2: 从 `UserDetail` 实体删除 email 字段** +- [x] **Step 2: 从 `UserDetail` 实体删除 email 字段** 删除以下代码: ```java @@ -173,7 +173,7 @@ private String email; private String email; ``` -- [ ] **Step 3: 创建 `UserSocial` 实体** +- [x] **Step 3: 创建 `UserSocial` 实体** ```java package com.rui.service.user.entity; @@ -210,7 +210,9 @@ public class UserSocial extends BaseEntity { } ``` -- [ ] **Step 4: Commit** +> **实际执行说明 (2026-06-07)**:UserSocial 实体添加了 `@TableField(exist = false)` 屏蔽 BaseEntity 中的 `deleted`/`createdBy`/`updatedBy`(SQL 表 rui_uc_user_social 中无这些列;按项目惯例 UserRole/UserDept/UserPost 处理)。 + +- [x] **Step 4: Commit** ```bash git add rui-service/rui-service-user/src/main/java/com/rui/service/user/entity/