Files
QYZH.InteractiveMagazine/QYZH.InteractiveMagazine.Models/Entity/UserJournal.cs
glz b95c5029f1 feat: 添加期刊二维码管理功能,调整UserJournal的UserId为可空类型
1.  新增数据库脚本修改User表UserId字段为可空
2.  新增期刊二维码CRUD接口与控制器
3.  重构绑定期刊逻辑,优化重复绑定校验
4.  删除冗余的JwtHelper重载方法
2026-07-01 17:05:38 +08:00

43 lines
1.1 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; }
}
}