import type { BooleanFlag } from '@/constants/enums'

export interface WheelPrizeItemDto {
  createdAt: number
  createdUser: string
  description: string
  id: number | null
  imageUrl: string
  isEnabled: BooleanFlag
  name: string
  probability: number
  quantity: number
  sortOrder: number
  type: number
  updatedAt: number
}

export type WheelConfigDto = {
  isActivityActive: boolean
  startTime: number
  endTime: number
  costYaCoin: number
} | null

export type LuckWheelResultDto = {
  blessingText: string | null
  coinCost: number
  isWin: boolean
  prizeId: number | null
  prizeImageUrl: string
  prizeName: string
}

export interface UserWheelRecordItemDto {
  blessingText: string
  coinCost: number
  createdAt: number
  createdAtStr: string
  id: number
  isWin: BooleanFlag
  issueTime: null
  issueTimeStr: string
  issuerName: null
  memo: string
  prizeId: null
  prizeImageUrl: null
  prizeName: null
  status: null
  userId: number
  userName: string
}
