Files
qipai/docs/devlogs/2026-06-24-M07-D-会员管理.md
T

26 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# M07-D 会员管理
- 日期:2026-06-24
- 起始 commit`239ef4d`
- 工程 commit`ed0d455`
- ENGINEERING_DELTA=YES
- 子阶段状态:DONE
## 工程增量
- 新增 `MemberProfileService`,聚合会员画像、注册时间、最近登录、订单数、已支付订单数、消费额、最近下单、余额、充值、优惠券和套餐状态。
- 新增后台会员查询路由 `/admin-api/members``/admin-api/members/:id`,复用 JWT 会话和 RBAC 访问档案。
- 门店管理员按 `user.read` 与门店余额账户范围裁剪可见会员;租户管理员和平台管理员可查看租户内会员。
- 手机号在会员列表和详情中继续脱敏;最近钱包流水只返回业务类型、业务号、金额变化和余额结果,不暴露敏感凭据。
- 新增 `member-profile-service.test.mjs`,覆盖聚合统计、最近流水、手机号脱敏、租户隔离和门店范围裁剪。
## 验证
- Windows `npm run build`:退出码 0。
- Windows `node tests/member-profile-service.test.mjs`:退出码 0。
## 后续
游标进入 M08-A 顾客端:基于现有小程序模板接入首页/选店、房间、下单、支付、订单、开门、余额、优惠券、套餐和个人中心。