refactor: 批量新增枚举类型并完成实体、DTO、服务层枚举替换
- 新增30+业务枚举类型覆盖用户、宠物、商城、社区、积分等模块 - 完成实体类、DTO、服务层的字符串枚举替换为强类型枚举 - 修复用户状态枚举名称变更,将Frozen改为Disabled - 新增批量发布社区消息接口与控制器实现 - 新增操作日志、积分管理、补偿任务相关服务与DTO
This commit is contained in:
@ -1,11 +1,12 @@
|
||||
using SqlSugar;
|
||||
using QYZH.InteractiveMagazine.Models.Enum;
|
||||
|
||||
namespace QYZH.InteractiveMagazine.Models.Entity
|
||||
{
|
||||
///<summary>
|
||||
///模板评论表
|
||||
///</summary>
|
||||
[SugarTable("MessageComment")]
|
||||
[SugarTable("CommunityMessageComment")]
|
||||
public partial class CommunityMessageComment : SqlSugarBaseEntity
|
||||
{
|
||||
public CommunityMessageComment(){
|
||||
@ -39,13 +40,13 @@ namespace QYZH.InteractiveMagazine.Models.Entity
|
||||
/// Default:TemplateComment
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
public string Type {get;set;}
|
||||
public CommunityMessageCommentTypeEnum Type {get;set;}
|
||||
|
||||
/// <summary>
|
||||
/// Desc:状态: Published, Hidden
|
||||
/// Default:Published
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
public string Status {get;set;}
|
||||
public CommunityMessageCommentStatusEnum Status {get;set;}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user