add notify editor/view

This commit is contained in:
Timi
2026-08-24 16:50:40 +08:00
parent ccbb924c9a
commit 0c5a4d4fd9
8 changed files with 155 additions and 3 deletions
+9 -1
View File
@@ -1,4 +1,5 @@
import type { Model } from "./Model";
import type { Attachment } from "./Attachment";
import type { User } from "./User";
/** 通知消息类型 */
@@ -7,6 +8,9 @@ export type NotifyMsgType = "INTERNAL" | "SMS" | "MAIL" | "HTTP" | "WECHAT";
/** 通知投递状态 */
export type NotifyStatus = "WAITING" | "REMINDED" | "TIMEOUT" | "CANCEL" | "FAIL";
/** 通知内容类型 */
export type NotifyContentType = "TEXT" | "TIP_TAP";
/** 通知 */
export type Notify = {
/** 业务类型 */
@@ -34,7 +38,11 @@ export type NotifyDetail = {
/** 标题 */
subject?: string;
/** 内容 */
data?: string;
content?: string;
/** 内容类型 */
contentType?: NotifyContentType;
/** 媒体附件列表 */
attachmentList?: Attachment[];
/** 参数 */
args?: string;
/** 发送来源 */