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.
|
|
12 months ago | |
|---|---|---|
| .. | ||
| LINGYUN/Abp/Notifications | 12 months ago | |
| FodyWeavers.xml | 2 years ago | |
| FodyWeavers.xsd | 2 years ago | |
| LINGYUN.Abp.Notifications.Application.csproj | 1 year ago | |
| README.EN.md | 1 year ago | |
| README.md | 1 year ago | |
README.md
LINGYUN.Abp.Notifications.Application
通知系统的应用层模块,提供了通知系统的应用服务实现。
功能特性
- 通知管理服务
- 通知订阅服务
- 通知发布服务
- 通知查询服务
- 通知状态管理服务
模块引用
[DependsOn(typeof(AbpNotificationsApplicationModule))]
public class YouProjectModule : AbpModule
{
// other
}
应用服务
INotificationAppService
- GetAsync - 获取通知详情
- GetListAsync - 获取通知列表
- DeleteAsync - 删除通知
- MarkReadAsync - 标记通知为已读
- MarkAllReadAsync - 标记所有通知为已读
INotificationSubscriptionAppService
- SubscribeAsync - 订阅通知
- UnSubscribeAsync - 取消订阅通知
- GetAssignableSubscribersAsync - 获取可分配的订阅者列表
- GetSubscribedListAsync - 获取已订阅的通知列表
基本用法
- 发送通知
await NotificationAppService.PublishAsync(
name: "YourNotification",
data: new NotificationData(),
userIds: new[] { CurrentUser.Id });
- 管理通知订阅
await NotificationSubscriptionAppService.SubscribeAsync(
notificationName: "YourNotification");