import { LobeChatAgentsMarketIndex } from '@/types/market'; import { API_ENDPOINTS } from './_url'; class MarketService { getAgentList = async (locale: string): Promise => { const res = await fetch(`${API_ENDPOINTS.market}?locale=${locale}`); return res.json(); }; /** * 请求助手 manifest */ getAgentManifest = async (identifier: string, locale: string) => { if (!identifier) return; const res = await fetch(`${API_ENDPOINTS.marketItem(identifier)}?locale=${locale}`); return res.json(); }; } export const marketService = new MarketService();