Files
Yi.Admin/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Domain/Entities/DiscussEntity.cs

62 lines
1.7 KiB
C#
Raw Normal View History

2023-12-11 09:55:12 +08:00
using SqlSugar;
using Volo.Abp;
using Volo.Abp.Auditing;
using Volo.Abp.Domain.Entities;
using Yi.Framework.Bbs.Domain.Shared.Enums;
namespace Yi.Framework.Bbs.Domain.Entities
2023-04-15 22:44:33 +08:00
{
[SugarTable("Discuss")]
2023-12-11 09:55:12 +08:00
public class DiscussEntity : Entity<Guid>, ISoftDelete, IAuditedObject
2023-04-15 22:44:33 +08:00
{
public DiscussEntity()
{
}
2023-12-11 09:55:12 +08:00
public DiscussEntity(Guid plateId)
2023-04-15 22:44:33 +08:00
{
PlateId = plateId;
}
2023-12-11 09:55:12 +08:00
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
public override Guid Id { get; protected set; }
2023-04-20 23:08:21 +08:00
public string? Title { get; set; }
public string? Types { get; set; }
public string? Introduction { get; set; }
2023-04-15 22:44:33 +08:00
public int AgreeNum { get; set; }
public int SeeNum { get; set; }
/// <summary>
/// 封面
/// </summary>
2023-04-20 23:08:21 +08:00
public string? Cover { get; set; }
2023-04-15 22:44:33 +08:00
2023-12-11 09:55:12 +08:00
[SugarColumn(ColumnDataType = StaticConfig.CodeFirst_BigString)]
2023-04-15 22:44:33 +08:00
public string Content { get; set; }
2023-04-20 23:08:21 +08:00
public string? Color { get; set; }
2023-04-15 22:44:33 +08:00
public bool IsDeleted { get; set; }
//是否置顶默认false
public bool IsTop { get; set; }
public DiscussPermissionTypeEnum PermissionType { get; set; }
2023-12-11 09:55:12 +08:00
public Guid PlateId { get; set; }
2023-04-15 22:44:33 +08:00
public DateTime CreationTime { get; set; }
2023-12-11 09:55:12 +08:00
public Guid? CreatorId { get; set; }
2023-04-15 22:44:33 +08:00
2023-12-11 09:55:12 +08:00
public Guid? LastModifierId { get; set; }
2023-04-15 22:44:33 +08:00
public DateTime? LastModificationTime { get; set; }
/// <summary>
/// 当PermissionType为部分用户时候以下列表中的用户+创建者 代表拥有权限
/// </summary>
[SugarColumn(IsJson = true)]//使用json处理
2023-12-11 09:55:12 +08:00
public List<Guid>? PermissionUserIds { get; set; }
2023-04-15 22:44:33 +08:00
}
}