package com.bizzan.bitrade.model.screen;

import com.bizzan.bitrade.entity.ContractOrderDirection;
import com.bizzan.bitrade.entity.ContractOrderEntrustStatus;
import com.bizzan.bitrade.entity.ContractOrderEntrustType;
import com.bizzan.bitrade.entity.ContractOrderType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class ContractOrderEntrustScreen {
    private ContractOrderEntrustStatus status;
    private ContractOrderType type;
    private ContractOrderDirection direction;
    private ContractOrderEntrustType entrustType;
    private Long memberId;
    private Long contractId;
    private BigDecimal volume;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    private Integer isFromSpot;
    private Integer isBlast;
    private BigDecimal profitAndLoss;
    private String phone;
    private String email;
}
