这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
feijie f60b0b8320 feat(docs): 添加实时通知模块文档 1 year ago
..
LINGYUN/Abp/Notifications fix(notifications): 修复删除消息时无效的问题 1 year ago
FodyWeavers.xml upgrade(abp): upgrade abp framework to 7.4.0 2 years ago
FodyWeavers.xsd upgrade(abp): upgrade abp framework to 7.4.0 2 years ago
LINGYUN.Abp.Notifications.Domain.csproj upgrade abp framework to 8.2.0 2 years ago
README.EN.md feat(docs): 添加实时通知模块文档 1 year ago
README.md feat(docs): 添加实时通知模块文档 1 year ago

README.md

LINGYUN.Abp.Notifications.Domain

通知系统的领域层模块,提供了通知系统的领域模型和业务逻辑。

功能特性

  • 通知实体定义
  • 通知订阅管理
  • 通知状态管理
  • 通知数据扩展支持
  • 支持自定义通知数据

模块引用

[DependsOn(typeof(AbpNotificationsDomainModule))]
public class YouProjectModule : AbpModule
{
  // other
}

领域模型

Notification

  • Id - 通知唯一标识
  • Name - 通知名称
  • NotificationData - 通知数据
  • CreationTime - 创建时间
  • Type - 通知类型
  • Severity - 通知严重程度
  • ExtraProperties - 扩展属性

NotificationSubscription

  • UserId - 用户标识
  • NotificationName - 通知名称
  • CreationTime - 创建时间

基本用法

  1. 创建通知
var notification = new Notification(
    id: GuidGenerator.Create(),
    name: "YourNotification",
    data: new NotificationData(),
    tenantId: CurrentTenant.Id);
  1. 管理通知订阅
await NotificationSubscriptionManager.SubscribeAsync(
    userId: CurrentUser.Id,
    notificationName: "YourNotification");

更多信息