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.
|
|
3 months ago | |
|---|---|---|
| .. | ||
| LINGYUN/Abp/Notifications | 1 year ago | |
| FodyWeavers.xml | 2 years ago | |
| FodyWeavers.xsd | 2 years ago | |
| LINGYUN.Abp.Notifications.Domain.Shared.csproj | 3 months ago | |
| README.EN.md | 1 year ago | |
| README.md | 1 year ago | |
README.md
LINGYUN.Abp.Notifications.Domain.Shared
通知系统的共享领域层模块,提供了通知系统的共享常量、枚举和其他领域对象。
功能特性
- 通知类型定义
- 通知严重程度定义
- 通知状态定义
- 通知生命周期定义
- 通知常量定义
模块引用
[DependsOn(typeof(AbpNotificationsDomainSharedModule))]
public class YouProjectModule : AbpModule
{
// other
}
枚举定义
NotificationType
- Application - 应用程序通知
- System - 系统通知
- User - 用户通知
NotificationSeverity
- Info - 信息
- Success - 成功
- Warn - 警告
- Error - 错误
- Fatal - 致命错误
NotificationLifetime
- Persistent - 持久化通知
- OnlyOne - 一次性通知
基本用法
- 使用通知类型
var notificationType = NotificationType.Application;
- 使用通知严重程度
var severity = NotificationSeverity.Info;