add Notify

This commit is contained in:
Timi
2026-08-20 22:58:53 +08:00
parent 5302ad9798
commit 763783b984
4 changed files with 94 additions and 0 deletions
+57
View File
@@ -0,0 +1,57 @@
import type { Model } from "./Model";
/** 通知消息类型 */
export type NotifyMsgType = "INTERNAL" | "SMS" | "MAIL" | "HTTP" | "WECHAT";
/** 通知投递状态 */
export type NotifyStatus = "WAITING" | "REMINDED" | "TIMEOUT" | "CANCEL" | "FAIL";
/** 通知 */
export type Notify = {
/** 业务类型 */
bizType?: string;
/** 提醒业务类型 */
bizRemindedType?: string;
/** 提醒业务 ID */
bizRemindedId?: string;
/** 参数 */
args?: string;
/** 创建者 */
createdBy?: string;
/** 通知详情列表 */
detailList?: NotifyDetail[];
} & Model;
/** 通知详情 */
export type NotifyDetail = {
/** 所属通知 ID */
notifyId?: string;
/** 消息类型 */
msgType?: NotifyMsgType;
/** 模板 ID */
templateId?: string;
/** 标题 */
subject?: string;
/** 内容 */
data?: string;
/** 参数 */
args?: string;
/** 发送来源 */
sendFrom?: string;
/** 发送去向 */
sendTo?: string;
/** 发送时间 */
sendAt?: number;
/** 重试计数 */
retry?: number;
/** 超时时间 */
timeoutAt?: number;
/** 结果描述 */
resultDesc?: string;
/** 投递状态 */
status?: NotifyStatus;
/** 已读时间,站内通知未读时为空 */
readAt?: number;
/** 所属通知 */
notify?: Notify;
} & Model;