65 lines
1.9 KiB
C#
65 lines
1.9 KiB
C#
namespace F9WebAiTest.Domain.Entities.Notice;
|
|
|
|
/// <summary>消息优先级</summary>
|
|
public enum NotificationPriority
|
|
{
|
|
Normal = 0, // 普通
|
|
Important = 1, // 重要
|
|
Urgent = 2 // 紧急
|
|
}
|
|
|
|
/// <summary>消息状态</summary>
|
|
public enum NotificationStatus
|
|
{
|
|
Ready = 0, // 准备(待投递)
|
|
Sent = 1, // 已发送
|
|
Failed = 2, // 失败
|
|
PartialSuccess = 3, // 部分成功
|
|
Revoked = 4 // 已撤销
|
|
}
|
|
|
|
/// <summary>阅读状态</summary>
|
|
public enum NotificationReadStatus
|
|
{
|
|
Unread = 0, // 未读
|
|
Read = 1 // 已读
|
|
}
|
|
|
|
/// <summary>推送状态</summary>
|
|
public enum NotificationSendStatus
|
|
{
|
|
NotSent = 0, // 未发送
|
|
Success = 1, // 成功
|
|
Failed = 2 // 失败
|
|
}
|
|
|
|
/// <summary>待办状态</summary>
|
|
public enum TodoItemStatus
|
|
{
|
|
Pending = 0, // 待处理
|
|
Processing = 1, // 处理中
|
|
Completed = 2, // 已完成
|
|
Cancelled = 3 // 已取消
|
|
}
|
|
|
|
/// <summary>消息分类(决定消息中心展示形态与处理方式)</summary>
|
|
public enum NotificationCategory
|
|
{
|
|
Notification = 0, // 通知:纯提醒,点开查看/标记已读
|
|
Todo = 1, // 待办:需用户处理(审批/任务),关联待办事项
|
|
Announcement = 2 // 公告:广播给全体,重点展示
|
|
}
|
|
|
|
/// <summary>
|
|
/// 消息类型枚举(枚举名与 NotificationType.Code 一一对应)。
|
|
/// 业务侧通过「该枚举 + MediatR 命令」发送消息,无需关心底层实现。
|
|
/// 新增消息类型时:1) 在此加枚举值 2) 在数据库/种子中配置同名 Code 的消息类型(标题、路由模板、接收规则等)。
|
|
/// </summary>
|
|
public enum NotificationTypeEnum
|
|
{
|
|
TeyeFound = 1, // 发现特野
|
|
TdcFound = 2, // 发现特大糙
|
|
LeaveApproval = 3, // 请假审批(待办)
|
|
LeaveResult = 4 // 请假结果通知(通知)
|
|
}
|