Files
QYZH.InteractiveMagazine/QYZH.InteractiveMagazine.Models/Entity/UserJournal.cs
glz 78b686f9e5 refactor: 批量新增枚举类型并完成实体、DTO、服务层枚举替换
- 新增30+业务枚举类型覆盖用户、宠物、商城、社区、积分等模块
- 完成实体类、DTO、服务层的字符串枚举替换为强类型枚举
- 修复用户状态枚举名称变更,将Frozen改为Disabled
- 新增批量发布社区消息接口与控制器实现
- 新增操作日志、积分管理、补偿任务相关服务与DTO
2026-06-08 16:57:44 +08:00

50 lines
1.3 KiB
C#
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.

using SqlSugar;
using QYZH.InteractiveMagazine.Models.Enum;
namespace QYZH.InteractiveMagazine.Models.Entity
{
///<summary>
///用户与期刊关联表
///</summary>
[SugarTable("UserJournal")]
public partial class UserJournal : SqlSugarBaseEntity
{
public UserJournal()
{
}
/// <summary>
/// Desc:用户Id
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(ColumnName = "UserId")]
public long UserId { get; set; }
/// <summary>
/// Desc:期刊模板Id对应Journal表的期刊定义
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(ColumnName = "JournalId")]
public long JournalId { get; set; }
/// <summary>
/// Desc:关联类型: Read(已读), Favorite(收藏), Subscribe(订阅)
/// Default:Read
/// Nullable:False
/// </summary>
[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; }
}
}