deeplinkReport.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import axios from 'axios';
  2. export interface DeeplinkDailyReportRecord {
  3. row_key: string;
  4. row_type: 'daily' | 'channel';
  5. report_date: string;
  6. channel_name?: string;
  7. display_name?: string;
  8. total_count: number;
  9. success_count: number;
  10. fail_count: number;
  11. children?: DeeplinkDailyReportRecord[];
  12. }
  13. export interface DeeplinkDailyReportSummary {
  14. total_count: number;
  15. success_count: number;
  16. fail_count: number;
  17. }
  18. export interface DeeplinkDailyReportChannel {
  19. channel_name: string;
  20. display_name: string;
  21. total_count: number;
  22. success_count: number;
  23. fail_count: number;
  24. }
  25. export interface DeeplinkDailyReportParams {
  26. query_date: string[];
  27. channel_name?: string;
  28. }
  29. export interface DeeplinkDailyReportRes {
  30. list: DeeplinkDailyReportRecord[];
  31. count: number;
  32. summary: DeeplinkDailyReportSummary;
  33. channels: DeeplinkDailyReportChannel[];
  34. maxRangeDays: number;
  35. }
  36. export function queryDeeplinkDailyReport(data: DeeplinkDailyReportParams) {
  37. return axios.post<DeeplinkDailyReportRes>(
  38. '/api/DeeplinkReport/daily',
  39. data
  40. );
  41. }