import axios from 'axios'; export interface DeeplinkDailyReportRecord { row_key: string; row_type: 'daily' | 'channel'; report_date: string; channel_name?: string; display_name?: string; total_count: number; success_count: number; fail_count: number; children?: DeeplinkDailyReportRecord[]; } export interface DeeplinkDailyReportSummary { total_count: number; success_count: number; fail_count: number; } export interface DeeplinkDailyReportChannel { channel_name: string; display_name: string; total_count: number; success_count: number; fail_count: number; } export interface DeeplinkDailyReportParams { query_date: string[]; channel_name?: string; } export interface DeeplinkDailyReportRes { list: DeeplinkDailyReportRecord[]; count: number; summary: DeeplinkDailyReportSummary; channels: DeeplinkDailyReportChannel[]; maxRangeDays: number; } export function queryDeeplinkDailyReport(data: DeeplinkDailyReportParams) { return axios.post( '/api/DeeplinkReport/daily', data ); }