declare namespace Api { /** * namespace NotifyMessage * * backend api module: "notify-message"(站内信 · 我的收件箱) */ namespace NotifyMessage { interface PageParams { pageNo: number; pageSize: number; } interface PageResult { total: number; list: T[]; } /** 站内信(铃铛 / 收件箱展示用;ID 在 API 适配层已统一为 string) */ interface NotifyMessage { /** 站内信编号(雪花 Long,按 string 接收) */ id: string; /** 发送人名称(模板配置的发件人显示名) */ templateNickname: string; /** 最终消息正文(占位符已渲染,直接展示) */ templateContent: string; /** 消息类型,字典 system_notify_template_type */ templateType: number; /** 是否已读 */ readStatus: boolean; /** 阅读时间;未读为 null */ readTime: string | number | null; /** 收到时间 */ createTime: string | number; } /** 我的站内信分页查询参数 */ interface MyPageParams extends PageParams { /** true 只看已读 / false 只看未读 / 不传 = 全部 */ readStatus?: boolean; /** 关键字,后端对消息正文模糊匹配;不传或空串 = 不过滤 */ keyword?: string; } } }