From cb9cd49627b65a4c0e137e08063271a8cefe1826 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 23 七月 2026 17:48:49 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_pro2.0' into dev_pro2.0
---
src/api/im/channel/material/index.ts | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/src/api/im/channel/material/index.ts b/src/api/im/channel/material/index.ts
new file mode 100644
index 0000000..9f0338f
--- /dev/null
+++ b/src/api/im/channel/material/index.ts
@@ -0,0 +1,24 @@
+import { requestClient } from '#/api/request';
+
+export namespace ImChannelMaterialApi {
+ /** 鐢ㄦ埛绔兘鐪嬪埌鐨勯閬撶礌鏉愯鎯� */
+ export interface Material {
+ id: number;
+ channelId: number;
+ type: number;
+ title: string;
+ coverUrl?: string;
+ summary?: string;
+ content?: string;
+ url?: string;
+ }
+}
+
+
+/** 鑾峰彇棰戦亾绱犳潗璇︽儏锛涚敤浜庡鎴风鐐瑰嚮鍥炬枃鍗$墖娓叉煋璇︽儏椤� */
+export function getChannelMaterial(id: number) {
+ return requestClient.get<ImChannelMaterialApi.Material>(
+ '/im/channel/material/get',
+ { params: { id } },
+ );
+}
--
Gitblit v1.9.3