using Hotline.Share.Dtos.FlowEngine; using Hotline.Share.Dtos.Org; using Hotline.Share.Enums.KnowledgeBase; namespace Hotline.Share.Dtos.Knowledge { /// /// 编辑 /// public record UpdateKnowledgeDto : AddKnowledgeDto { /// /// ID /// public string Id { get; set; } /// /// 标签名称 /// public List Tags { get; set; } = new(); } /// /// 新增知识 /// public record AddKnowledgeDto : KnowledgeDto { /// /// 知识Code /// public string Code { get; set; } /// /// 标签名称 /// public List Tags { get; set; } = new(); /// /// 知识归属 /// public string? Attribution { get; set; } /// /// 来源部门 /// public string? SourceOrganizeId { get; set; } public BasicWorkflowDto? Workflow { get; set; } } /// /// 查询详情 /// public record KnowledgeInfoDto : KnowledgeDto { /// /// ID /// public string Id { get; set; } /// /// 知识Code /// public string Code { get; set; } /// /// 知识分类名称 /// public string KnowledgeTypeName { get; set; } /// /// 热点名称 /// public string HotspotName { get; set; } /// /// 流程Id /// public string? WorkflowId { get; set; } } /// /// 基础 /// public record KnowledgeDto { /// /// 知识分类 /// public string KnowledgeTypeId { get; set; } /// /// 热点 /// public string HotspotId { get; set; } /// /// 标题 /// public string Title { get; set; } /// /// 摘要 /// public string Summary { get; set; } /// /// 内容 /// public string Content { get; set; } /// /// 是否公开 /// public bool IsPublic { get; set; } /// /// 文档状态,默认草稿 /// public EKnowledgeStatus Status { get; set; } = EKnowledgeStatus.Drafts; /// /// 到期时间 /// public DateTime? ExpiredTime { get; set; } /// /// 关键词 /// public string Keywords { get; set; } /// /// 附件 /// public List Additions { get; set; } /// /// 关联知识 /// public List Knowledges { get; set; } /// /// 外部数据(为前端提供级联功能) /// public string HotspotExternal { get; set; } /// /// 评分 /// public decimal? Score { get; set; } = decimal.Zero; /// /// 评论数 /// public int? CommentNum { get; set; } = 0; /// /// 来源部门 /// public string? SourceOrganizeId { get; set; } /// /// 来源部门 /// public OrgDto SourceOrganize { get; set; } public KnowledgeTypeDto KnowledgeType { get; set; } } /// /// 知识详情 /// public record KnowledgeShowInfoDto { /// /// ID /// public string Id { get; set; } /// /// 知识Code /// public string Code { get; set; } /// /// 流程Id /// public string? WorkflowId { get; set; } /// /// 知识分类名称 /// public string KnowledgeTypeName { get; set; } /// /// 热点名称 /// public string HotspotName { get; set; } /// /// 标题 /// public string Title { get; set; } /// /// 摘要 /// public string Summary { get; set; } /// /// 内容 /// public string Content { get; set; } /// /// 是否公开 /// public bool IsPublic { get; set; } /// /// 创建人 /// public string? CreatorName { get; set; } /// /// 创建时间 /// public DateTime? CreationTime { get; set; } /// /// 关键词 /// public string Keywords { get; set; } /// /// 附件 /// public List Additions { get; set; } } }