refactor: 完善枚举系统与状态类型转换,新增枚举管理接口

1. 为所有枚举添加Description特性用于中文描述
2. 移除实体类中冗余的状态字段注释与定义
3. 将所有枚举状态参数改为int类型转换,统一数据交互格式
4. 新增系统管理枚举查询接口与实现,支持获取所有枚举元数据
5. 调整宠物服务模板状态更新接口参数类型
This commit is contained in:
glz
2026-06-08 17:54:36 +08:00
parent 78b686f9e5
commit 0126c6b097
81 changed files with 470 additions and 176 deletions

View File

@ -0,0 +1,40 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Dto.SystemManagement;
/// <summary>
/// 枚举信息输出
/// </summary>
public class EnumInfoOutput
{
/// <summary>
/// 枚举名称
/// </summary>
public string EnumName { get; set; } = string.Empty;
/// <summary>
/// 枚举项列表
/// </summary>
public List<EnumItemDto> Items { get; set; } = new();
}
/// <summary>
/// 枚举项
/// </summary>
public class EnumItemDto
{
/// <summary>
/// 枚举项名称
/// </summary>
public string Name { get; set; } = string.Empty;
/// <summary>
/// 枚举项值
/// </summary>
public int Value { get; set; }
/// <summary>
/// 描述
/// </summary>
public string? Description { get; set; }
}

View File

@ -42,12 +42,5 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// Nullable:False
/// </summary>
public CheckInConfigTypeEnum Type {get;set;}
/// <summary>
/// Desc:状态: Active, Inactive
/// Default:Active
/// Nullable:False
/// </summary>
public CheckInConfigStatusEnum Status {get;set;}
}
}

View File

@ -41,12 +41,5 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// Nullable:False
/// </summary>
public CommunityMessageCommentTypeEnum Type {get;set;}
/// <summary>
/// Desc:状态: Published, Hidden
/// Default:Published
/// Nullable:False
/// </summary>
public CommunityMessageCommentStatusEnum Status {get;set;}
}
}

View File

@ -35,12 +35,5 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// Nullable:False
/// </summary>
public CommunityTemplateSentenceTypeEnum Type {get;set;}
/// <summary>
/// Desc:状态: Active, Inactive
/// Default:Active
/// Nullable:False
/// </summary>
public CommunityTemplateSentenceStatusEnum Status {get;set;}
}
}

View File

@ -78,12 +78,6 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// </summary>
public int MaxRetries { get; set; }
/// <summary>
/// Desc:处理状态 Pending / Processing / Success / Failed / Cancelled
/// Default:Pending
/// Nullable:False
/// </summary>
public CompensationTaskStatusEnum Status { get; set; }
/// <summary>
/// Desc:最后处理时间

View File

@ -94,12 +94,6 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// </summary>
public int TotalUse {get;set;}
/// <summary>
/// Desc:Pending / Processing / Success / Failed / Cancelled
/// Default:Pending
/// Nullable:False
/// </summary>
public DotFileStatusEnum Status {get;set;}
/// <summary>
/// Desc:

View File

@ -59,12 +59,6 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// </summary>
public int Revision {get;set;}
/// <summary>
/// Desc:Pending / Processing / Success / Failed / Cancelled
/// Default:Pending
/// Nullable:False
/// </summary>
public DotFileDetailStatusEnum Status {get;set;}
/// <summary>
/// Desc:

View File

@ -60,11 +60,5 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// </summary>
public int Quantity { get; set; }
/// <summary>
/// Desc:状态: Success, Refunded
/// Default:Success
/// Nullable:False
/// </summary>
public ExchangeRecordStatusEnum Status { get; set; }
}
}

View File

@ -82,12 +82,5 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// Nullable:False
/// </summary>
public JournalTypeEnum Type {get;set;}
/// <summary>
/// Desc:状态: Draft, Published, Archived
/// Default:Draft
/// Nullable:False
/// </summary>
public JournalStatusEnum Status {get;set;}
}
}

View File

@ -51,13 +51,6 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// </summary>
public int PageNum {get;set;}
/// <summary>
/// Desc:校验状态(0-未校验 1校验成功 -1校验失败)
/// Default:
/// Nullable:False
/// </summary>
public int Status {get;set;}
/// <summary>
/// Desc:页图片
/// Default:

View File

@ -80,12 +80,5 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// Nullable:False
/// </summary>
public PetEvolutionTypeEnum Type { get; set; }
/// <summary>
/// Desc:状态: Active, Inactive
/// Default:Active
/// Nullable:False
/// </summary>
public PetEvolutionStatusEnum Status { get; set; }
}
}

View File

@ -63,11 +63,5 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// </summary>
public PetFeedingRecordTypeEnum Type {get;set;}
/// <summary>
/// Desc:状态
/// Default:Success
/// Nullable:False
/// </summary>
public PetFeedingRecordStatusEnum Status {get;set;}
}
}

View File

@ -53,11 +53,5 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// </summary>
public PetTemplateTypeEnum Type { get; set; }
/// <summary>
/// Desc:状态: Active, Inactive
/// Default:Active
/// Nullable:False
/// </summary>
public PetTemplateStatusEnum Status { get; set; }
}
}

View File

@ -63,11 +63,5 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// </summary>
public PointsFlowTypeEnum Type {get;set;}
/// <summary>
/// Desc:状态: Success, Failed, Pending
/// Default:Success
/// Nullable:False
/// </summary>
public PointsRecordStatusEnum Status {get;set;}
}
}

View File

@ -55,11 +55,5 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// </summary>
public UserBagTypeEnum Type {get;set;}
/// <summary>
/// Desc:状态: Available, Expired
/// Default:Available
/// Nullable:False
/// </summary>
public UserBagStatusEnum Status {get;set;}
}
}

View File

@ -38,12 +38,5 @@ namespace QYZH.InteractiveMagazine.Models.Entity
[SugarColumn(ColumnName = "Type")]
public UserJournalTypeEnum Type { get; set; }
/// <summary>
/// Desc:状态: Active(正常), Inactive(失效)
/// Default:Active
/// Nullable:False
/// </summary>
[SugarColumn(ColumnName = "Status")]
public UserJournalStatusEnum Status { get; set; }
}
}

View File

@ -40,12 +40,5 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// Nullable:True
/// </summary>
public UserMedalTypeEnum Type {get;set;}
/// <summary>
/// Desc:状态: Awarded, Revoked
/// Default:Awarded
/// Nullable:False
/// </summary>
public UserMedalStatusEnum Status {get;set;}
}
}

View File

@ -70,13 +70,6 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// </summary>
public UserPetTypeEnum Type { get; set; }
/// <summary>
/// Desc:状态: Inactive, Active, Sleeping
/// Default:Inactive
/// Nullable:False
/// </summary>
public UserPetStatusEnum Status { get; set; }
/// <summary>
/// 理解力
/// </summary>

View File

@ -41,13 +41,6 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// Nullable:False
/// </summary>
public UsersTypeEnum Type { get; set; }
/// <summary>
/// Desc:状态: Active, Disabled
/// Default:Active
/// Nullable:False
/// </summary>
public UserStatusEnum Status { get; set; }
/// <summary>
/// Desc:微信OpenId
/// Default:

View File

@ -0,0 +1,22 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum
{
/// <summary>
/// 管理员状态枚举
/// </summary>
public enum AdminUserStatusEnum
{
/// <summary>
/// 未激活
/// </summary>
[Description("未激活")]
Inactive = 0,
/// <summary>
/// 激活
/// </summary>
[Description("激活")]
Active = 1
}
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,13 +10,16 @@ public enum AdminUserTypeEnum
/// <summary>
/// 编辑员
/// </summary>
[Description("编辑员")]
Editor = 2,
/// <summary>
/// 超级管理员
/// </summary>
[Description("超级管理员")]
SuperAdmin = 0,
/// <summary>
/// 超级管理员
/// 管理员
/// </summary>
[Description("管理员")]
Admin = 1
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,10 +10,12 @@ public enum CheckInConfigStatusEnum
/// <summary>
/// 未激活
/// </summary>
[Description("未激活")]
Inactive = 0,
/// <summary>
/// 激活
/// </summary>
[Description("激活")]
Active = 1
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,9 +10,11 @@ public enum CheckInConfigTypeEnum
/// <summary>
/// 每日签到
/// </summary>
[Description("每日签到")]
Daily = 1,
/// <summary>
/// 连续签到
/// </summary>
[Description("连续签到")]
Streak = 2
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,5 +10,11 @@ public enum CheckInRecordStatusEnum
/// <summary>
/// 成功
/// </summary>
Success = 1
[Description("成功")]
Success = 1,
/// <summary>
/// 失败
/// </summary>
[Description("失败")]
Fail = 1
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,9 +10,11 @@ public enum CheckInRecordTypeEnum
/// <summary>
/// 正常签到
/// </summary>
[Description("正常签到")]
Normal = 1,
/// <summary>
/// 补签
/// </summary>
[Description("补签")]
MakeUp = 2
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,10 +10,12 @@ public enum CommunityMessageCommentStatusEnum
/// <summary>
/// 已隐藏
/// </summary>
[Description("已隐藏")]
Hidden = 0,
/// <summary>
/// 已发布
/// </summary>
[Description("已发布")]
Published = 1
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,5 +10,6 @@ public enum CommunityMessageCommentTypeEnum
/// <summary>
/// 模板评论
/// </summary>
[Description("模板评论")]
TemplateComment = 1
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,5 +10,6 @@ public enum CommunityMessageLikeTypeEnum
/// <summary>
/// 点赞
/// </summary>
[Description("点赞")]
Like = 1
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,10 +10,12 @@ public enum CommunityTemplateSentenceStatusEnum
/// <summary>
/// 未激活
/// </summary>
[Description("未激活")]
Inactive = 0,
/// <summary>
/// 激活
/// </summary>
[Description("激活")]
Active = 1
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,13 +10,16 @@ public enum CommunityTemplateSentenceTypeEnum
/// <summary>
/// 正面
/// </summary>
[Description("正面")]
Positive = 1,
/// <summary>
/// 中性
/// </summary>
[Description("中性")]
Neutral = 2,
/// <summary>
/// 负面
/// </summary>
[Description("负面")]
Negative = 3
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,25 +10,30 @@ public enum CompensationTaskStatusEnum
/// <summary>
/// 待处理
/// </summary>
[Description("待处理")]
Pending = 0,
/// <summary>
/// 处理中
/// </summary>
[Description("处理中")]
Processing = 1,
/// <summary>
/// 成功
/// </summary>
[Description("成功")]
Success = 2,
/// <summary>
/// 失败
/// </summary>
[Description("失败")]
Failed = 3,
/// <summary>
/// 已取消
/// </summary>
[Description("已取消")]
Cancelled = 4
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,17 +10,21 @@ public enum CompensationTaskTypeEnum
/// <summary>
/// 宠物喂养补偿
/// </summary>
[Description("宠物喂养补偿")]
PetFeeding = 1,
/// <summary>
/// 用户积分补偿
/// </summary>
[Description("用户积分补偿")]
UserPoints = 2,
/// <summary>
/// 用户成长值补偿
/// </summary>
[Description("用户成长值补偿")]
UserGrowth = 3,
/// <summary>
/// 发送通知补偿
/// </summary>
[Description("发送通知补偿")]
SendNotification = 4
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,25 +10,30 @@ public enum DotFileDetailStatusEnum
/// <summary>
/// 待处理
/// </summary>
[Description("待处理")]
Pending = 0,
/// <summary>
/// 处理中
/// </summary>
[Description("处理中")]
Processing = 1,
/// <summary>
/// 成功
/// </summary>
[Description("成功")]
Success = 2,
/// <summary>
/// 失败
/// </summary>
[Description("失败")]
Failed = 3,
/// <summary>
/// 已取消
/// </summary>
[Description("已取消")]
Cancelled = 4
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,25 +10,30 @@ public enum DotFileStatusEnum
/// <summary>
/// 待处理
/// </summary>
[Description("待处理")]
Pending = 0,
/// <summary>
/// 处理中
/// </summary>
[Description("处理中")]
Processing = 1,
/// <summary>
/// 成功
/// </summary>
[Description("成功")]
Success = 2,
/// <summary>
/// 失败
/// </summary>
[Description("失败")]
Failed = 3,
/// <summary>
/// 已取消
/// </summary>
[Description("已取消")]
Cancelled = 4
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,10 +10,12 @@ public enum ExchangeRecordStatusEnum
/// <summary>
/// 成功
/// </summary>
[Description("成功")]
Success = 1,
/// <summary>
/// 已退还
/// </summary>
[Description("已退还")]
Refunded = 2
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,9 +10,11 @@ public enum JournalCatalogTypeEnum
/// <summary>
/// 单元
/// </summary>
[Description("单元")]
Unit = 0,
/// <summary>
/// 页面
/// </summary>
[Description("页面")]
Page = 1
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,15 +10,18 @@ public enum JournalPageStatusEnum
/// <summary>
/// 验证失败
/// </summary>
[Description("验证失败")]
Failed = -1,
/// <summary>
/// 未验证
/// </summary>
[Description("未验证")]
NotVerified = 0,
/// <summary>
/// 验证成功
/// </summary>
[Description("验证成功")]
Success = 1
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,17 +10,21 @@ public enum JournalPageTaskTypeEnum
/// <summary>
/// 单选题
/// </summary>
[Description("单选题")]
SingleChoice = 1,
/// <summary>
/// 多选题
/// </summary>
[Description("多选题")]
MultipleChoice = 2,
/// <summary>
/// 填空题
/// </summary>
[Description("填空题")]
FillInBlank = 3,
/// <summary>
/// 问答题
/// </summary>
[Description("问答题")]
QuestionAnswer = 4
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,15 +10,18 @@ public enum JournalStatusEnum
/// <summary>
/// 草稿
/// </summary>
[Description("草稿")]
Draft = 0,
/// <summary>
/// 已发布
/// </summary>
[Description("已发布")]
Published = 1,
/// <summary>
/// 已归档
/// </summary>
[Description("已归档")]
Archived = 2
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,9 +10,11 @@ public enum JournalTypeEnum
/// <summary>
/// 普通
/// </summary>
[Description("普通")]
Normal = 1,
/// <summary>
/// 特刊
/// </summary>
[Description("特刊")]
Special = 2
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,9 +10,11 @@ public enum MedalTypeEnum
/// <summary>
/// 宠物勋章
/// </summary>
[Description("宠物勋章")]
Pet = 1,
/// <summary>
/// 社区勋章
/// </summary>
[Description("社区勋章")]
Community = 2
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,15 +10,18 @@ public enum MessageStatusEnum
/// <summary>
/// 审核中
/// </summary>
[Description("审核中")]
PendingReview = 0,
/// <summary>
/// 已通过
/// </summary>
[Description("已通过")]
Approved = 1,
/// <summary>
/// 已冻结
/// </summary>
[Description("已冻结")]
Frozen = 2
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,15 +10,18 @@ public enum MessageTypeEnum
/// <summary>
/// 文章
/// </summary>
[Description("文章")]
Article = 1,
/// <summary>
/// 引用
/// </summary>
[Description("引用")]
Quote = 2,
/// <summary>
/// 公告
/// </summary>
[Description("公告")]
Announcement = 3
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,10 +10,12 @@ public enum PetEvolutionStatusEnum
/// <summary>
/// 未激活
/// </summary>
[Description("未激活")]
Inactive = 0,
/// <summary>
/// 激活
/// </summary>
[Description("激活")]
Active = 1
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,9 +10,11 @@ public enum PetEvolutionTypeEnum
/// <summary>
/// 普通进化
/// </summary>
[Description("普通进化")]
Normal = 1,
/// <summary>
/// 特殊进化
/// </summary>
[Description("特殊进化")]
Special = 2
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,5 +10,11 @@ public enum PetFeedingRecordStatusEnum
/// <summary>
/// 成功
/// </summary>
Success = 1
[Description("成功")]
Success = 1,
/// <summary>
/// 失败
/// </summary>
[Description("失败")]
Fail = 1
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,9 +10,11 @@ public enum PetFeedingRecordTypeEnum
/// <summary>
/// 普通喂养
/// </summary>
[Description("普通喂养")]
Normal = 1,
/// <summary>
/// 特殊喂养
/// </summary>
[Description("特殊喂养")]
Special = 2
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,9 +10,11 @@ public enum PetSkinImageTypeEnum
/// <summary>
/// 普通图片
/// </summary>
[Description("普通图片")]
Normal = 1,
/// <summary>
/// 特殊图片
/// </summary>
[Description("特殊图片")]
Special = 2
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,13 +10,16 @@ public enum PetSkinTypeEnum
/// <summary>
/// 普通皮肤
/// </summary>
[Description("普通皮肤")]
Normal = 1,
/// <summary>
/// 限定皮肤
/// </summary>
[Description("限定皮肤")]
Limited = 2,
/// <summary>
/// 活动皮肤
/// </summary>
[Description("活动皮肤")]
Event = 3
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,10 +10,12 @@ public enum PetTemplateStatusEnum
/// <summary>
/// 未激活
/// </summary>
[Description("未激活")]
Inactive = 0,
/// <summary>
/// 激活
/// </summary>
[Description("激活")]
Active = 1
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,13 +10,16 @@ public enum PetTemplateTypeEnum
/// <summary>
/// 普通
/// </summary>
[Description("普通")]
Normal = 1,
/// <summary>
/// 特殊
/// </summary>
[Description("特殊")]
Special = 2,
/// <summary>
/// 限定
/// </summary>
[Description("限定")]
Limited = 3
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,45 +10,54 @@ public enum PointsChangeTypeEnum
/// <summary>
/// 签到奖励
/// </summary>
[Description("签到奖励")]
SignIn,
/// <summary>
/// 补签奖励
/// </summary>
[Description("补签奖励")]
MakeUpSign,
/// <summary>
/// 商城兑换扣除
/// </summary>
[Description("商城兑换扣除")]
Exchange,
/// <summary>
/// 宠物喂养消耗
/// </summary>
[Description("宠物喂养消耗")]
FeedPet,
/// <summary>
/// 任务奖励(杂志任务等)
/// </summary>
[Description("任务奖励")]
TaskReward,
/// <summary>
/// 注册奖励
/// </summary>
[Description("注册奖励")]
RegisterBonus,
/// <summary>
/// 勋章奖励
/// </summary>
[Description("勋章奖励")]
MedalBonus,
/// <summary>
/// 系统补偿
/// </summary>
[Description("系统补偿")]
SystemCompensation,
/// <summary>
/// 后台手动调整
/// </summary>
[Description("后台手动调整")]
ManualAdjust
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,10 +10,12 @@ public enum PointsFlowTypeEnum
/// <summary>
/// 收入
/// </summary>
[Description("收入")]
Income,
/// <summary>
/// 支出
/// </summary>
[Description("支出")]
Expense
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,15 +10,18 @@ public enum PointsRecordStatusEnum
/// <summary>
/// 待处理
/// </summary>
[Description("待处理")]
Pending = 0,
/// <summary>
/// 成功
/// </summary>
[Description("成功")]
Success = 1,
/// <summary>
/// 失败
/// </summary>
[Description("失败")]
Failed = 2
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,9 +10,11 @@ public enum ProductTypeEnum
/// <summary>
/// 补签卡
/// </summary>
[Description("补签卡")]
MakeUpCard = 1,
/// <summary>
/// 宠物背景
/// </summary>
[Description("宠物背景")]
PetBg = 2
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,10 +10,12 @@ public enum UserBagStatusEnum
/// <summary>
/// 已过期
/// </summary>
[Description("已过期")]
Expired = 0,
/// <summary>
/// 可用
/// </summary>
[Description("可用")]
Available = 1
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,9 +10,11 @@ public enum UserBagTypeEnum
/// <summary>
/// 补签卡
/// </summary>
[Description("补签卡")]
MakeUpCard = 1,
/// <summary>
/// 宠物背景
/// </summary>
[Description("宠物背景")]
PetBg = 2
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,10 +10,12 @@ public enum UserJournalStatusEnum
/// <summary>
/// 失效
/// </summary>
[Description("失效")]
Inactive = 0,
/// <summary>
/// 正常
/// </summary>
[Description("正常")]
Active = 1
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,13 +10,16 @@ public enum UserJournalTypeEnum
/// <summary>
/// 已读
/// </summary>
[Description("已读")]
Read = 1,
/// <summary>
/// 收藏
/// </summary>
[Description("收藏")]
Favorite = 2,
/// <summary>
/// 订阅
/// </summary>
[Description("订阅")]
Subscribe = 3
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,10 +10,12 @@ public enum UserMedalStatusEnum
/// <summary>
/// 已撤销
/// </summary>
[Description("已撤销")]
Revoked = 0,
/// <summary>
/// 已授予
/// </summary>
[Description("已授予")]
Awarded = 1
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,9 +10,11 @@ public enum UserMedalTypeEnum
/// <summary>
/// 系统授予
/// </summary>
[Description("系统授予")]
System = 1,
/// <summary>
/// 活动奖励
/// </summary>
[Description("活动奖励")]
Activity = 2
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,15 +10,18 @@ public enum UserPetStatusEnum
/// <summary>
/// 未激活
/// </summary>
[Description("未激活")]
Inactive = 0,
/// <summary>
/// 激活
/// </summary>
[Description("激活")]
Active = 1,
/// <summary>
/// 休眠中
/// </summary>
[Description("休眠中")]
Sleeping = 2
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,5 +10,6 @@ public enum UserPetTypeEnum
/// <summary>
/// 普通
/// </summary>
[Description("普通")]
Normal = 1
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,10 +10,12 @@ public enum UserStatusEnum
/// <summary>
/// 启用
/// </summary>
[Description("启用")]
Active = 1,
/// <summary>
/// 禁用
/// </summary>
[Description("禁用")]
Disabled = 2
}

View File

@ -1,3 +1,5 @@
using System.ComponentModel;
namespace QYZH.InteractiveMagazine.Models.Enum;
/// <summary>
@ -8,9 +10,11 @@ public enum UsersTypeEnum
/// <summary>
/// 普通用户
/// </summary>
[Description("普通用户")]
Normal = 1,
/// <summary>
/// VIP用户
/// </summary>
[Description("VIP用户")]
VIP = 2
}