using Hotline.Share.Dtos.File;
using Hotline.Share.Dtos.FlowEngine;
using Hotline.Share.Dtos.Org;
using Hotline.Share.Dtos.Quality;
using Hotline.Share.Enums.KnowledgeBase;
using XF.Utility.EnumExtensions;
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 record KnowledgeInfoDto : KnowledgeDto
{
///
/// ID
///
public string Id { get; set; }
///
/// 知识Code
///
public string Code { get; set; }
///
/// 热点名称
///
public string HotspotName { get; set; }
///
/// 流程Id
///
public string? WorkflowId { get; set; }
///
/// 是否可办理
///
public bool? IsCanHandle { get; set; }
}
///
/// 基础
///
public record KnowledgeDto : KnowledgeBaseDto
{
///
/// 知识分类
///
public List KnowledgeType { 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 string StatusText => Status.GetDescription();
///
/// 到期时间
///
public DateTime? ExpiredTime { get; set; }
///
/// 关键词
///
public List Keywords { get; set; }
///
/// 附件
///
public List Additions { get; set; }
///
/// 外部数据(为前端提供级联功能)
///
public string HotspotExternal { get; set; }
///
/// 知识归属
///
public string? Attribution { get; set; }
///
/// 浏览量
///
public int PageView { get; set; } = 0;
///
/// 搜索量
///
public int? SearchNum { get; set; } = 0;
///
/// 评分
///
public decimal? Score { get; set; } = decimal.Zero;
///
/// 评论数
///
public int? CommentNum { get; set; } = 0;
///
/// 来源部门
///
public string? SourceOrganizeId { get; set; }
///
/// 来源部门
///
public OrgDto? SourceOrganize { get; set; }
public KnowledgeCollectDto Collect { get; set; }
///
/// 关联知识
///
public List Knowledges { get; set; }
///
/// 关联知识对象
///
public List KnowledgeDtos { get; set; }
///
/// 关键词
///
public List KeywordsDto { get; set; }
public List Files { get; set; }
}
public record KnowledgeBaseDto {
public DateTime? LastModificationTime { get; set; }
public bool IsDeleted { get; set; }
///
/// 删除时间
///
public DateTime? DeletionTime { get; set; }
///
/// 创建时间
///
public DateTime CreationTime { get; set; }
public string Id { get; set; }
///
/// 组织Id
///
public string? CreatorOrgId { get; set; }
public string? CreatorOrgName { get; set; }
///
/// 创建人
///
public string? CreatorId { get; set; }
public string? CreatorName { get; set; }
}
public class KnowledgeTitleDto {
///
/// ID
///
public string? Id { get; set; }
///
/// 标题
///
public string Title { get; set; }
}
public class KnowledgeSearchNumDto
{
///
/// ID
///
public string? Id { get; set; }
}
public class KnowledgeFindingDuplicateDto
{
///
/// 标题
///
public string Title { get; set; }
///
/// 摘要
///
public string? Summary { get; set; }
///
/// 内容
///
public string Content { get; set; }
}
public class AddStartFlowDto : StartWorkflowDto
{
}
public class UpdateStartFlowDto : StartWorkflowDto
{
}
public class DeleteStartFlowDto : StartWorkflowDto
{
}
}