using OASystem.Domain.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OASystem.Domain.Entities.System
{
///
/// 系统消息 表
///
[SugarTable("Sys_Message")]
public class Sys_Message :EntityBase
{
///
/// 类型
/// 0
/// 1 公告消息
/// 2 团组流程管控消息
/// 3 团组业务操作消息
/// 4 费用审核消息
/// 5 签证进度更新消息
/// 6 任务进度更新消息
///
[SugarColumn(IsNullable = true,ColumnDataType = "int")]
public MessageTypeEnum Type { get; set; }
///
/// 类型参数(json格式存储)
/// 1 系统公告消息
/// 2 团组流程管控消息
/// 3 团组业务操作消息
/// eg:PageId:104,Id:123,paramName:paramValue....
/// 4 系统费用审核消息
/// 5 签证进度更新消息
/// 6 任务进度更新消息
///
[SugarColumn(IsNullable = true, ColumnDataType = "varchar(200)")]
public string? Param { get; set; }
///
/// 发布者用户Id
/// 4 管理员 Id
///
[SugarColumn(IsNullable = true, ColumnDataType = "int")]
public int IssuerId { get; set; } = 4;
///
/// 团组Id,可为0
///
[SugarColumn(IsNullable = true, ColumnDataType = "int")]
public int DiId { get; set; } = 0;
///
/// 消息标题
///
[SugarColumn(IsNullable = true,ColumnDataType = "varchar(100)")]
public string Title { get; set; }
///
/// 消息内容
///
[SugarColumn(IsNullable = true,ColumnDataType = "varchar(500)")]
public string Content { get; set; }
///
/// 发布时间
///
[SugarColumn(IsNullable = true , ColumnDataType = "datetime")]
public DateTime ReleaseTime { get; set; }
}
}