using SqlSugar; using Volo.Abp.Domain.Entities.Auditing; namespace Yi.Framework.DigitalCollectibles.Domain.Entities; /// /// 数字藏品用户存储表 /// 表示用户与藏品的库存关系 /// [SugarTable("DC_CollectiblesUserStore")] public class CollectiblesUserStoreAggregateRoot : FullAuditedAggregateRoot { /// /// 用户id /// public Guid UserId { get; set; } /// /// 藏品id /// public Guid CollectiblesId { get; set; } /// /// 用户是否已读 /// public bool IsRead { get; set; } /// /// 是否正在市场交易 /// public bool IsAtMarketing { get; set; } /// /// 上架货物 /// public void ShelvedMarket() { IsAtMarketing = true; } /// /// 交易货物 /// public void PurchaseMarket(Guid userId) { UserId = userId; IsAtMarketing = false; } }