package com.bonus.material.book.domain;

import com.alibaba.fastjson2.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * @Author：liang.chao
 * @Date：2024/11/22 - 16:39
 */
@Data
public class BookCarDetailDto {
    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "预约id")
    private Integer bookId;

    @ApiModelProperty(value = "设备id")
    private Integer typeId;

    @ApiModelProperty(value = "租赁类型")
    private Integer leaseType;

    @ApiModelProperty(value = "租赁单价(日租金)")
    private BigDecimal leasePrice;

    @ApiModelProperty(value = "租期")
    private String rentDay;

    @ApiModelProperty(value = "天数")
    private Integer days;

    @ApiModelProperty(value = "数量")
    private Integer num;

    @ApiModelProperty(value = "总金额")
    private BigDecimal costs;

    @ApiModelProperty(value = "创建人")
    private String creater;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "类型编号")
    private String typeCode;

    @ApiModelProperty(value = "规格型号")
    private String modelCode;

    @ApiModelProperty(value = "类型名称")
    private String typeName;

}
