zhangwencui
7 天以前 7619c19a67c2ac824f803090bab753fc5ea14408
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 } },
  );
}