MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / buildFilterParams

Function buildFilterParams

src/services/data/fetch.ts:59–67  ·  view source on GitHub ↗
(filter?: TimeFilter)

Source from the content-addressed store, hash-verified

57import { get, post, del, put, patch, analyticsGet } from '../utils/http'
58
59function buildFilterParams(filter?: TimeFilter): string {
60 if (!filter) return ''
61 const params = new URLSearchParams()
62 if (filter.startTs) params.set('startTs', String(filter.startTs))
63 if (filter.endTs) params.set('endTs', String(filter.endTs))
64 if (filter.memberId) params.set('memberId', String(filter.memberId))
65 const qs = params.toString()
66 return qs ? `?${qs}` : ''
67}
68
69export class FetchDataAdapter implements DataAdapter {
70 // ==================== 会话管理 ====================

Callers 15

getMemberActivityMethod · 0.85
getHourlyActivityMethod · 0.85
getDailyActivityMethod · 0.85
getWeekdayActivityMethod · 0.85
getMonthlyActivityMethod · 0.85
getYearlyActivityMethod · 0.85
getTextStatsMethod · 0.85
getMemberMonthlyTrendMethod · 0.85
getDragonKingAnalysisMethod · 0.85

Calls 1

setMethod · 0.80

Tested by

no test coverage detected