data.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. export interface IGameListParams {
  2. tagIds?: string | string[],
  3. providerIds?: number | number[],
  4. currency: string,
  5. favorite?: 0 | 1,
  6. recent?: 0 | 1,
  7. }
  8. export interface IGameTag {
  9. tagId: number;
  10. tagName: string;
  11. tagCode: string;
  12. color: string;
  13. sortWeight: number;
  14. }
  15. export interface IGameInfo {
  16. gameID: number;
  17. gameName: string;
  18. gameCode: string;
  19. isFavorite: number;
  20. providerID: number;
  21. providerName: string;
  22. sortWeight: number;
  23. tagSortWeight: number;
  24. tags: IGameTag[];
  25. type: string;
  26. RTP: number;
  27. currencies: string[];
  28. coverUrl: {
  29. Portrait: string,
  30. Square: string,
  31. };
  32. }
  33. export interface IGameLaunch {
  34. gameCode: string;
  35. providerCode: string;
  36. providerGameId: string;
  37. currency: string;
  38. launchUrl: string;
  39. }
  40. export interface IGameHistory {
  41. roundId: number;
  42. gameName: string;
  43. gameTime: string;
  44. entry: number;
  45. win: number;
  46. currency: string;
  47. coverUrl?: string;
  48. }
  49. export interface IGameHistoryRes {
  50. current_page: number;
  51. data: IGameHistory[];
  52. first_page_url?: string;
  53. from: number;
  54. last_page: number;
  55. last_page_url?: string;
  56. next_page_url?: string;
  57. path?: string;
  58. per_page: number;
  59. prev_page_url?: string;
  60. to: number;
  61. total: number;
  62. }