refactor: 重构用户与勋章体系,统一状态管理与数据结构

1.  新增通用默认状态枚举 DefaultStatusEnum,替换原有分散的状态枚举
2.  重构用户体系:拆分 WxUser 独立表存储微信身份,Users 表改为角色子用户表并关联 WxUser
3.  重构勋章模块:新增系统/期刊勋章类型,调整 JournalId 为可空,新增勋章状态字段
4.  重构微信认证流程:基于 WxUser 生成 Token,支持多子用户管理
5.  清理冗余枚举文件,重构多处业务逻辑适配新的数据结构
6.  修复用户手机号关联逻辑,迁移手机号字段至 WxUser 表
This commit is contained in:
glz
2026-06-10 13:47:13 +08:00
parent 296d87b245
commit 028e3dfb34
29 changed files with 477 additions and 515 deletions

View File

@ -7,6 +7,11 @@ namespace QYZH.InteractiveMagazine.Models.Enum;
/// </summary>
public enum MedalTypeEnum
{
/// <summary>
/// 系统勋章
/// </summary>
[Description("系统勋章")]
System = 0,
/// <summary>
/// 宠物勋章
/// </summary>
@ -16,5 +21,11 @@ public enum MedalTypeEnum
/// 社区勋章
/// </summary>
[Description("社区勋章")]
Community = 2
Community = 2,
/// <summary>
/// 期刊勋章
/// </summary>
[Description("期刊勋章")]
Journal = 3
}