package com.m2pool.lease.dto.v2;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * <p>
 * 挖矿中订单
 * </p>
 *
 * @author yyb
 * @since 2025-12-02
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "买家已购矿机返回对象",value = "PurchasedMachineDto" )
public class PurchasedMachineDto {

    @ApiModelProperty(value = "id")
    private Long id;

    //@ApiModelProperty(value = "订单编号")
    //private String orderNumbers;


    @ApiModelProperty(value = "矿工号")
    private String workerId;

    @ApiModelProperty(value = "0 租约已到期 1挖矿中 2卖家矿机启动中")
    private Integer status;


    @ApiModelProperty(value = "挖矿开始时间")
    private LocalDateTime startTime;


    @ApiModelProperty(value = "挖矿结束时间")
    private LocalDateTime endTime;


    @ApiModelProperty(value = "实时算力")
    private BigDecimal power;

    @ApiModelProperty(value = "最近实时算力记录时间")
    private LocalDateTime recordTime;

}
