gaoluyang
2026-06-29 27cd042df9aca0383a49f3514bc21958dd890912
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 } },
  );
}