Phase 3.7: Market Expansion - analytics dashboard, featured apps, category system, real API integration (replaces mock data)
This commit is contained in:
1 parent
2c5ab13209
commit
63741b3f0f
3 files changed
+1463
-602
No files matched your search
@@ -375,8 +375,16 @@ export const adminAPI = {
|
||||
toggleAd: (id: string) => put<any>(`/admin/ads/${id}/toggle`),
|
||||
// 应用市场审核
|
||||
getPendingApps: () => get<any[]>('/admin/market/apps/pending'),
|
||||
approveApp: (id: string) => put<any>(`/admin/market/apps/${id}/approve`),
|
||||
rejectApp: (id: string) => put<any>(`/admin/market/apps/${id}/reject`),
|
||||
getMarketOverview: () => get<any>('/admin/market/analytics/overview'),
|
||||
getTopApps: (metric: string, limit: number) => get<any>(`/admin/market/analytics/top-apps?metric=${metric}&limit=${limit}`),
|
||||
getRecentReviews: () => get<any>('/admin/market/analytics/recent-reviews'),
|
||||
getAdminMarketApps: (query: string) => get<any>(`/admin/market/apps?${query}`),
|
||||
getMarketCategories: () => get<any>('/admin/market/categories'),
|
||||
setFeaturedApp: (id: string, featured: boolean, order: number) => put<any>(`/admin/market/apps/${id}/featured`, { featured, featured_order: order }),
|
||||
deleteMarketApp: (id: string) => del<any>(`/admin/market/apps/${id}`),
|
||||
updateMarketApp: (id: string, data: any) => put<any>(`/admin/market/apps/${id}`, data),
|
||||
approveApp: (id: string) => put<any>(`/admin/market/apps/${id}/approve`),
|
||||
rejectApp: (id: string) => put<any>(`/admin/market/apps/${id.includes('?') ? id.split('?')[0] + '/reject?' + id.split('?')[1] : id + '/reject'}`),
|
||||
getAdminApps: () => get<any[]>('/admin/market/apps'),
|
||||
updateApp: (id: string, data: any) => put<any>(`/admin/market/apps/${id}`, data),
|
||||
getCoupons: () => get<any[]>('/admin/market/coupons'),
|
||||
|
||||
Reference in new issue
Block a user