using Hotline.Share.Dtos.Users;
using Hotline.Share.Enums.Article;
using Hotline.Share.Requests;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XF.Utility.EnumExtensions;
namespace Hotline.Share.Dtos.Snapshot;
class SnapshotBulletinDto
{
}
///
/// 入参
///
/// 列表名称
/// 标题
/// 文档编号
/// 部门
/// 发布人
/// 发布开始时间
/// 发布结束时间
public record SnapshotBulletinItemsInDto(string? SnapshotBulletinTypeName, string? Title,
string? No,
string? DepartmentName,
string? CreatorName,
DateTime? BeginCreationTime,
DateTime? EndCreationTime) : PagedRequest;
public class SnapshotBulletinItemsOutDto
{
public string Id { get; set; }
public DateTime CreationTime { get; set; }
public string Title { get; set; }
public string Content { get; set; }
///
/// 字典中添加类型Id
///
public string SnapshotBulletinTypeId { get; set; }
///
/// 系统字典中添加类型名称
///
public string SnapshotBulletinTypeName { get; set; }
///
/// 阅读量
///
public int ReadedNum { get; set; }
///
/// 通知时间
///
public DateTime? BulletinTime { get; set; }
///
/// 公告状态
///
public EBulletinState BulletinState { get; set; }
///
/// 来源单位ID
///
public string SourceOrgId { get; set; }
///
/// 来源单位名称
///
public string SourceOrgName { get; set; }
///
/// 创建人
///
public string? CreatorId { get; set; }
public string? CreatorName { get; set; }
///
/// 提交时间
///
public DateTime? CommitTime { get; set; }
///
/// 审核意见
///
public string? ExaminOpinion { get; set; }
///
/// 审核人
///
public string? ExaminManId { get; set; }
///
/// 审核人
///
public UserDto? ExaminMan { get; set; }
///
/// 审核时间
///
public DateTime? ExaminTime { get; set; }
public string BulletinStateText => BulletinState.GetDescription();
///
/// 是否公开
///
public bool? IsOpen { get; set; }
///
/// 是否加粗
///
public bool? IsBold { get; set; }
///
/// 网站公开
///
public bool? IsOpenWebsite { get; set; }
///
/// 微博公开
///
public bool? IsWeibo { get; set; }
///
/// 微信公开
///
public bool? IsWeChat { get; set; }
///
/// 是否置顶
///
public bool? IsTop { get; set; }
}
public class AddSnapshotBulletinInDto
{
///
/// 标题
///
[Required]
public string Title { get; set; }
///
/// 内容
///
[Required]
public string Content { get; set; }
///
/// 公告类型
///
[Required]
public string BulletinTypeId { get; set; }
///
/// 公告类型名称
///
[Required]
public string BulletinTypeName { get; set; }
///
/// 文档编号
///
public string? No { get; set; }
///
/// 来源单位ID
///
public string SourceOrgId { get; set; }
///
/// 来源单位名称
///
public string SourceOrgName { get; set; }
///
/// 是否公开
///
public bool? IsOpen { get; set; }
///
/// 是否加粗
///
public bool? IsBold { get; set; }
///
/// 网站公开
///
public bool? IsOpenWebsite { get; set; }
///
/// 微博公开
///
public bool? IsWeibo { get; set; }
///
/// 微信公开
///
public bool? IsWeChat { get; set; }
///
/// 是否置顶
///
public bool? IsTop { get; set; }
}