HotTRDealsFrontend/src/models/deal/DealCard.ts
cureb a48d32fdec created image array
ui overhaul
2026-01-23 17:28:05 +00:00

28 lines
574 B
TypeScript

import type { PublicUserSummary } from "../user/User"
import type { SellerSummary } from "..//seller/Seller"
export type DealCard = {
id: number
title: string
description: string
url?: string
price?: number
score: number
commentsCount: number
myVote:-1 | 0 | 1
status: "PENDING" | "ACTIVE" | "EXPIRED" | "REJECTED"
saleType: "ONLINE" | "OFFLINE" | "CODE"
affiliateType: "AFFILIATE" | "NON_AFFILIATE" | "USER_AFFILIATE"
createdAt: string
updatedAt: string
// ilişkiler
user: PublicUserSummary
seller: SellerSummary
imageUrl: string
}