import type { PlatformConfig } from "./types/content"; export const MVP_PLATFORMS: PlatformConfig[] = [ { id: "douyin", name: "抖音", icon: "📱", color: "#000000", enabled: true, endpoints: { trending: "/api/v1/douyin/web/fetch_hot_search_result", detail: "/api/v1/douyin/web/fetch_one_video", }, }, { id: "tiktok", name: "TikTok", icon: "🎵", color: "#00F2EA", enabled: true, endpoints: { trending: "/api/v1/tiktok/web/fetch_trending_post", detail: "/api/v1/tiktok/web/fetch_post_detail", }, }, { id: "xiaohongshu", name: "小红书", icon: "📕", color: "#FF2442", enabled: true, endpoints: { trending: "/api/v1/xiaohongshu/app/v2/fetch_feed", detail: "/api/v1/xiaohongshu/app/v2/fetch_note_detail", }, }, { id: "youtube", name: "YouTube", icon: "▶️", color: "#FF0000", enabled: true, endpoints: { trending: "/api/v1/youtube/web/get_trending_videos", detail: "/api/v1/youtube/web/get_video_info", }, }, { id: "instagram", name: "Instagram", icon: "📷", color: "#E4405F", enabled: true, endpoints: { trending: "/api/v1/instagram/v1/fetch_explore_sections", detail: "/api/v1/instagram/v2/fetch_post_info", }, }, { id: "twitter", name: "Twitter/X", icon: "𝕏", color: "#000000", enabled: true, endpoints: { trending: "/api/v1/twitter/web/fetch_trending", detail: "/api/v1/twitter/web/fetch_tweet_detail", }, }, { id: "bilibili", name: "哔哩哔哩", icon: "📺", color: "#00A1D6", enabled: true, endpoints: { trending: "/api/v1/bilibili/web/fetch_com_popular", detail: "/api/v1/bilibili/web/fetch_video_detail", }, }, { id: "weibo", name: "微博", icon: "🔥", color: "#FF8200", enabled: true, endpoints: { trending: "/api/v1/weibo/app/fetch_hot_search", detail: "/api/v1/weibo/app/fetch_status_detail", }, }, ]; export function getPlatformConfig(platformId: string): PlatformConfig | undefined { return MVP_PLATFORMS.find((p) => p.id === platformId); }