package com.izouma.nineth.dto.auction;

import com.izouma.nineth.domain.FileObject;
import com.izouma.nineth.enums.*;
import com.izouma.nineth.service.AuctionOrderService;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.bytebuddy.agent.builder.AgentBuilder;

import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AuctionRecordDTO {
    @ApiModelProperty("用户ID")
    private Long               userId;
    @ApiModelProperty("创作者")
    private String             minter;
    @ApiModelProperty("拍卖活动ID")
    private Long               auctionId;
    @ApiModelProperty("拍卖活动")
    private String             name;
    @ApiModelProperty("拍卖活动图片")
    private List<FileObject>   auctionPic;
    @Enumerated(EnumType.STRING)
    @ApiModelProperty("类型")
    private AuctionRecordType  type;
    @ApiModelProperty("是否竞得")
    private boolean            purchased;
    @ApiModelProperty("出价")
    private BigDecimal         bidderPrice;
    private Long               actPurchasedId;
    private AuctionStatus      auctionStatus;
    private Long               orderId;
    private LocalDateTime      endTime;
    private LocalDateTime      createdTime;
    private BigDecimal         deposit;
    private AuctionType        auctionType;
    private AuctionOrderStatus orderStatus;
    private AuctionOrderStatus depositStatus;
}
