using OASystem.Domain.Entities.System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OASystem.Domain.ViewModels.System
{
    public class MessageView : Sys_Message
    {
    }

    /// <summary>
    /// 可于都消息返回视图
    /// </summary>
    public class ReadbleMessageView
    {
        /// <summary>
        /// 消息类型
        /// 0 
        /// 1 公告消息
        /// 2 团组流程管控消息
        /// 3 团组业务操作消息
        /// 4费用
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 消息标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 发布部门
        /// </summary>
        public string IssuerDep { get; set; }

        /// <summary>
        /// 发布者
        /// </summary>
        public string IssuerUser { get; set; }

        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime ReleaseTime { get; set; }

        /// <summary>
        /// 可阅读员工Id
        /// </summary>
        public int ReadableUId { get; set; }

        /// <summary>
        /// 是否阅读
        /// 0 未阅读
        /// 1 已阅读
        /// </summary>
        public int IsRead { get; set; }

        /// <summary>
        /// 阅读时间
        /// </summary>
        public DateTime? ReadTime { get; set; }
    }

    public class MessageInfoView 
    {
        /// <summary>
        /// 消息类型
        /// 1 公告消息
        /// 2 团组流程管控消息
        /// 3 团组业务操作消息
        /// 4费用
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string CompanyName { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepName { get; set; }

        /// <summary>
        /// 岗位名称
        /// </summary>
        public string JobName { get; set; }

        /// <summary>
        /// 发布人
        /// </summary>
        public string CnName { get; set; }

        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime ReleaseTime { get; set; }

        /// <summary>
        /// 消息标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 是否已读
        /// 0 未读 1 已读
        /// </summary>
        public int IsRead { get; set; }

        /// <summary>
        /// 已读时间
        /// 1990-01-01 00:00:000 未读
        /// </summary>
        public DateTime ReadTime { get; set; }
    }
}
