using Hotline.Orders; using SqlSugar; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using Hotline.Share.Dtos.File; using Hotline.Share.Enums.KnowledgeBase; using XF.Domain.Repository; namespace Hotline.KnowledgeBase { [Description("知识库纠错")] public class KnowledgeCorrection : FullStateEntity { /// /// 知识库ID /// [SugarColumn(ColumnDescription = "知识库ID")] public string KnowledgeId { get; set; } /// /// 知识库 /// [Navigate(NavigateType.OneToOne, nameof(KnowledgeId))] public Knowledge Knowledge { get; set; } /// /// 纠错内容 /// [SugarColumn(ColumnDescription = "纠错内容", ColumnDataType = "varchar(2000)")] public string? Content { get; set; } /// /// 答复人名称 /// [SugarColumn(ColumnDescription = "答复人名称")] public string? ReplyUserName { get; set; } /// /// 答复时间 /// [SugarColumn(ColumnDescription = "答复时间")] public DateTime? ReplyTime { get; set; } /// /// 答复内容 /// [SugarColumn(ColumnDescription = "纠错内容", ColumnDataType = "varchar(2000)")] public string? ReplyContent { get; set; } /// /// 答复状态 /// [SugarColumn(ColumnDescription = "答复状态")] public ECorrectionState State { get; set; } = ECorrectionState.Unanswered; [SugarColumn(ColumnDataType = "json", IsJson = true, IsNullable = true)] public List? FileJson { get; set; } } }