feat: 添加首页置顶接口
This commit is contained in:
@@ -39,6 +39,8 @@ namespace Yi.Framework.Bbs.Domain.Entities
|
||||
//是否置顶,默认false
|
||||
public bool IsTop { get; set; }
|
||||
|
||||
public int OrderNum { get; set; } = 0;
|
||||
|
||||
|
||||
public DiscussPermissionTypeEnum PermissionType { get; set; }
|
||||
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using SqlSugar;
|
||||
using Volo.Abp.Auditing;
|
||||
using Volo.Abp.Domain.Entities;
|
||||
|
||||
namespace Yi.Framework.Bbs.Domain.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 首页置顶主题
|
||||
/// </summary>
|
||||
[SugarTable("DiscussTop")]
|
||||
public class DiscussTopEntity : Entity<Guid>, IHasModificationTime
|
||||
{
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
|
||||
public override Guid Id { get; protected set; }
|
||||
|
||||
public int OrderNum { get; set; }
|
||||
|
||||
public Guid DiscussId { get; set; }
|
||||
|
||||
[Navigate(NavigateType.OneToOne, nameof(DiscussId))]
|
||||
public DiscussEntity Discuss { get; set; }
|
||||
|
||||
public DateTime? LastModificationTime { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user