package com.izouma.nineth.dto.collection;

import com.alibaba.excel.annotation.ExcelProperty;
import com.izouma.nineth.dto.AssetDTO;
import com.izouma.nineth.enums.AssetStatus;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@ApiModel("用户资产")
public class AssetExcelDTO {

    public AssetExcelDTO(AssetDTO assetDTO){
        BeanUtils.copyProperties(assetDTO, this);
    }

    @ExcelProperty("资产ID")
    private Long id;

    @ExcelProperty("用户ID")
    private Long userId;

    /**
     * 用户手机号
     */
    @ExcelProperty("用户手机号")
    private String phone;

    @ExcelProperty("藏品ID")
    private Long collectionId;

    @ExcelProperty("藏品名称")
    private String name;

    @ExcelProperty("令牌ID")
    private String tokenId;

    @ExcelProperty("链上HASH")
    private String txHash;


    @ExcelProperty("消耗GAS")
    private String gasUsed;


    @ExcelProperty("编号")
    private Integer number;

    @ExcelProperty("资产状态")
    private AssetStatus status;

    @ExcelProperty("创建时间")
    private LocalDateTime createdAt;

    @ExcelProperty("盲盒ID")
    private Long blindBoxId;

    @ExcelProperty("购买订单ID")
    private Long orderId;


    @ExcelProperty("购买价格")
    private BigDecimal price;

    @ExcelProperty("转让价格")
    private BigDecimal sellPrice;

    @ExcelProperty("卖出时间")
    private LocalDateTime outTime;
}
