using Hotline.Share.Dtos.FlowEngine; namespace Hotline.Share.Dtos.Knowledge { /// /// 编辑 /// public record UpdateKnowledgeDto : KnowledgeDto { /// /// ID /// public string Id { get; set; } } /// /// 新增知识 /// public record AddKnowledgeDto : KnowledgeDto { /// /// 知识Code /// public string Code { 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 DateTime? ExpiredTime { get; set; } /// /// 关键词 /// public string Keywords { get; set; } /// /// 附件 /// public List Additions { get; set; } /// /// 关联知识申请 /// public string Applies { get; set; } /// /// 关联知识 /// public List Knowledges { get; set; } /// /// 外部数据(为前端提供级联功能) /// public string HotspotExternal { 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; } } }