docs(plan): 标记 Task 7 (微信登录框架) 已完成 (commit 337d189)
This commit is contained in:
@@ -724,7 +724,7 @@ git commit -m "feat(oauth2): 实现短信登录框架
|
||||
- Rewrite: `rui-common/rui-common-oauth2/src/main/java/com/rui/common/oauth2/authentication/weixin/WeixinAuthenticationProvider.java`
|
||||
- Create: `rui-common/rui-common-oauth2/src/main/java/com/rui/common/oauth2/authentication/weixin/WechatApiClient.java`
|
||||
|
||||
- [ ] **Step 1: 创建 `WeixinAuthenticationToken`**
|
||||
- [x] **Step 1: 创建 `WeixinAuthenticationToken`**
|
||||
|
||||
```java
|
||||
package com.rui.common.oauth2.authentication.weixin;
|
||||
@@ -750,7 +750,7 @@ public class WeixinAuthenticationToken extends BaseAbstractAuthenticationToken {
|
||||
}
|
||||
```
|
||||
|
||||
- [ ] **Step 2: 创建 `WechatApiClient`**
|
||||
- [x] **Step 2: 创建 `WechatApiClient`**
|
||||
|
||||
```java
|
||||
package com.rui.common.oauth2.authentication.weixin;
|
||||
@@ -865,7 +865,7 @@ public class WechatApiClient {
|
||||
}
|
||||
```
|
||||
|
||||
- [ ] **Step 3: 重写 `WeixinAuthenticationConverter`**
|
||||
- [x] **Step 3: 重写 `WeixinAuthenticationConverter`**
|
||||
|
||||
```java
|
||||
package com.rui.common.oauth2.authentication.weixin;
|
||||
@@ -914,7 +914,7 @@ public class WeixinAuthenticationConverter extends BaseAuthenticationConverter<W
|
||||
}
|
||||
```
|
||||
|
||||
- [ ] **Step 4: 重写 `WeixinAuthenticationProvider`**
|
||||
- [x] **Step 4: 重写 `WeixinAuthenticationProvider`**
|
||||
|
||||
```java
|
||||
package com.rui.common.oauth2.authentication.weixin;
|
||||
@@ -987,7 +987,7 @@ public class WeixinAuthenticationProvider extends BaseAuthenticationProvider<Wei
|
||||
}
|
||||
```
|
||||
|
||||
- [ ] **Step 5: Commit**
|
||||
- [x] **Step 5: Commit**
|
||||
|
||||
```bash
|
||||
git add rui-common/rui-common-oauth2/src/main/java/com/rui/common/oauth2/authentication/weixin/
|
||||
@@ -1000,6 +1000,10 @@ git commit -m "feat(oauth2): 实现微信登录框架
|
||||
- 支持 code 换取用户信息"
|
||||
```
|
||||
|
||||
> **实际执行说明 (2026-06-07)**:WechatApiClient 内嵌 DTO 用 Lombok @Data 取代手写 getter/setter(项目惯例);WECHAT_GRANT_TYPE 提取为类常量;userAuthFeign 字段加 @SuppressWarnings("unused") 注释"预留给 UserSocialService 集成"。已知 TODO:UserSocialService 集成 + principal 编码占位符 + getUserInfo 未被 buildToken 调用(按 spec "框架先行" 范围,后续填充)。
|
||||
|
||||
---
|
||||
|
||||
---
|
||||
|
||||
## Task 8: rui-common-oauth2 支付宝登录实现
|
||||
|
||||
Reference in New Issue
Block a user