这是基于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.
 
 
 
 
 
 

69 lines
1.3 KiB

export enum NotificationLifetime {
Persistent = 0,
OnlyOne = 1,
}
export enum NotificationType {
Application = 0,
System = 10,
User = 20,
ServiceCallback = 30,
}
export enum NotificationContentType {
Text = 0,
Html = 1,
Markdown = 2,
Json = 3,
}
export enum NotificationSeverity {
Success = 0,
Info = 10,
Warn = 20,
Error = 30,
Fatal = 40,
}
export enum NotificationReadState {
Read = 0,
UnRead = 1,
}
export interface NotificationData {
type: string;
extraProperties: { [key: string]: any };
}
export interface NotificationInfo {
// tenantId?: string;
name: string;
id: string;
data: NotificationData;
creationTime: Date;
lifetime: NotificationLifetime;
type: NotificationType;
severity: NotificationSeverity;
contentType: NotificationContentType;
}
export interface NotificationGroup {
name: string;
displayName: string;
notifications: {
name: string;
displayName: string;
description: string;
type: NotificationType;
lifetime: NotificationLifetime;
}[];
}
export interface GetNotificationPagedRequest extends PagedAndSortedResultRequestDto {
reverse?: boolean;
readState?: NotificationReadState;
}
export interface NotificationPagedResult extends PagedResultDto<NotificationInfo> {}
export interface NotificationGroupListResult extends ListResultDto<NotificationGroup> {}