package com.fizz.business.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fizz.business.constants.enums.RollerPositionEnum;
import com.fizz.business.constants.enums.RollerTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class OnlineRollDataVO {
    @Schema(description = "轧辊号")
    private String rollid;


    @Schema(description = "类型")
    private RollerTypeEnum type;

    @Schema(description = "位置")
    private RollerPositionEnum position;


    @Schema(description = "直径")
    private Double diameter;

    @Schema(description = "粗糙度")
    private Double rough;

    @Schema(description = "凸度")
    private Double crown;

    @Schema(description = "轧制长度")
    private Double rolledLength;

    @Schema(description = "轧制重量")
    private Double rolledWeight;

    @Schema(description = "轧制数量")
    private Integer rolledCount;

    @Schema(description = "Installation Time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime instalTime;

    @Schema(description = "可用长度")
    private Double usableLength;

    @Schema(description = "剩余长度")
    private Double leftLength;

    @Schema(description = "可用重量")
    private Double usableWeight;

    @Schema(description = "剩余重量")
    private Double leftWeight;
}
