package com.yc.ship.module.product.api.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
@Schema(description = "订单使用房间详情")
public class OrderRoomUseDTO {

    @Schema(description = "房间ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long roomId;

    // 因为这个可能为0.5，为1则完全被使用，为0.5则使用一半
    @Schema(description = "房间使用数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private BigDecimal num;

    @Schema(description = "房型ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long roomModelId;

    @Schema(description = "楼层", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Integer floor;

    public String getKey() {
        return roomModelId + "_" + floor;
    }
}
