Merge pull request #486 from s-Joshua-s/feat/usage-filter-by-apikey

feat(gateway): filter /v1/usage stats by API Key instead of UserID
This commit is contained in:
Wesley Liddick
2026-02-05 13:37:31 +08:00
committed by GitHub
5 changed files with 117 additions and 2 deletions

View File

@@ -1610,6 +1610,10 @@ func (r *stubUsageLogRepo) GetUserDashboardStats(ctx context.Context, userID int
return nil, errors.New("not implemented")
}
func (r *stubUsageLogRepo) GetAPIKeyDashboardStats(ctx context.Context, apiKeyID int64) (*usagestats.UserDashboardStats, error) {
return nil, errors.New("not implemented")
}
func (r *stubUsageLogRepo) GetUserUsageTrendByUserID(ctx context.Context, userID int64, startTime, endTime time.Time, granularity string) ([]usagestats.TrendDataPoint, error) {
return nil, errors.New("not implemented")
}