完成 APP 建立流程和使用分析、增加主機備機的備援機制、管理者後臺增加資料庫監控
This commit is contained in:
@@ -8,9 +8,10 @@ export async function GET(request: NextRequest, { params }: { params: { id: stri
|
||||
const { id: appId } = await params
|
||||
const { searchParams } = new URL(request.url)
|
||||
|
||||
// 獲取日期範圍參數
|
||||
// 獲取日期範圍和部門過濾參數
|
||||
const startDate = searchParams.get('startDate')
|
||||
const endDate = searchParams.get('endDate')
|
||||
const department = searchParams.get('department')
|
||||
|
||||
// 獲取應用基本統計
|
||||
const app = await appService.getAppById(appId)
|
||||
@@ -24,8 +25,8 @@ export async function GET(request: NextRequest, { params }: { params: { id: stri
|
||||
// 獲取評分統計
|
||||
const ratingStats = await appService.getAppRatingStats(appId)
|
||||
|
||||
// 獲取使用趨勢數據(支援日期範圍)
|
||||
const usageStats = await appService.getAppUsageStats(appId, startDate || undefined, endDate || undefined)
|
||||
// 獲取使用趨勢數據(支援日期範圍和部門過濾)
|
||||
const usageStats = await appService.getAppUsageStats(appId, startDate || undefined, endDate || undefined, department || undefined)
|
||||
|
||||
// 獲取收藏數量
|
||||
const favoritesCount = await appService.getAppFavoritesCount(appId)
|
||||
|
Reference in New Issue
Block a user