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
{
}
public class MessageUnreadTotalCountView
{
public int UnreadCount { get; set; } = 0;
}
///
/// 用于都消息返回视图
///
public class MessageListView
{
public int RowNumber { get; set; }
public int Id { get; set; }
///
/// 消息类型
///
public int Type { get; set; }
///
/// 消息标题
///
public string Title { get; set; }
///
/// 消息内容
///
public string Content { get; set; }
///
/// 发布部门
///
public string IssuerDep { get; set; }
///
/// 发布者
///
public string IssuerUser { get; set; }
///
/// 发布时间
///
public DateTime ReleaseTime { get; set; }
///
/// 是否已读
/// 0 未读 1 已读
///
public int IsRead { get; set; }
//public int DiId { get; set; }
//public string Param { get; set; }
}
///
/// 用于都消息返回视图
///
public class ReadbleMessageView
{
public int RowNumber { get; set; }
public int Id { get; set; }
///
/// 消息类型
/// 1 公告消息
/// 2 团组流程管控消息
/// 3 团组业务操作消息
/// 4费用
///
public int Type { get; set; }
///
/// 消息标题
///
public string Title { get; set; }
///
/// 消息内容
///
public string Content { get; set; }
///
/// 发布部门
///
public string IssuerDep { get; set; }
///
/// 发布者
///
public string IssuerUser { get; set; }
///
/// 发布时间
///
public DateTime ReleaseTime { get; set; }
public int DiId { get; set; }
public string Param { get; set; }
}
public class ReadbleMessageView1 : ReadbleMessageView
{
public int IsRead { get; set; }
}
public class MessageInfoView
{
///
/// 消息类型
/// 1 公告消息
/// 2 团组流程管控消息
/// 3 团组业务操作消息
/// 4费用
///
public int Type { get; set; }
///
/// 公司名称
///
public string CompanyName { get; set; }
///
/// 部门名称
///
public string DepName { get; set; }
///
/// 岗位名称
///
public string JobName { get; set; }
///
/// 发布人
///
public string CnName { get; set; }
///
/// 发布时间
///
public DateTime ReleaseTime { get; set; }
///
/// 消息标题
///
public string Title { get; set; }
///
/// 消息内容
///
public string Content { get; set; }
///
/// 是否已读
/// 0 未读 1 已读
///
public int IsRead { get; set; }
///
/// 已读时间
/// 1990-01-01 00:00:000 未读
///
public DateTime ReadTime { get; set; }
public int DiId { get; set; }
public string Param { get; set; }
}
public class MessageTypeView
{
public int Id { get; set; }
///
/// 分类名称
///
public string Name { get; set; }
///
/// 未读条数
///
public int UnReadCount { get; set; } = 0;
}
public class NotificationTypeView
{
///
/// 通知类型
/// 1 操作通知
/// 2 任务通知
///
public int TypeId { get; set; }
///
/// 消息类型id
///
public List MsgTypeIds { get; set; }
}
}