package com.yc.ship.module.product.controller.admin.pricevoyage.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.yc.ship.module.product.dal.dataobject.basicpricearea.BasicPriceAreaDO;
import com.yc.ship.module.product.dal.dataobject.pricearea.PriceAreaDO;
import com.yc.ship.module.product.dal.dataobject.pricefloor.PriceFloorDO;
import com.yc.ship.module.product.dal.dataobject.priceroommodel.PriceRoomModelDO;
import com.yc.ship.module.product.dal.dataobject.pricesinglesetting.PriceSingleSettingDO;
import com.yc.ship.module.product.dal.dataobject.pricespu.PriceSpuDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 航次价格新增/修改 Request VO")
@Data
public class PriceVoyageSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15671")
    private Long id;

    @Schema(description = "模板名称", example = "王五")
    private String name;

    @Schema(description = "游轮ID", example = "11190")
    private Long shipId;

    @Schema(description = "航线ID", example = "18479")
    private Long routeId;

    @Schema(description = "价格模板ID", example = "27165")
    private Long templateId;

    @Schema(description = "航次ID", example = "1860")
    private Long voyageId;

    @Schema(description = "价格模式（字典）")
    private Integer priceMode;

    @Schema(description = "有效期")
    private LocalDateTime validateTime;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "基准价格")
    @ExcelProperty("基准价格")
    private BigDecimal basicPrice;

    @Schema(description = "房型价格系数")
    private List<PriceRoomModelDO> roomModelList;

    @Schema(description = "楼层价格系数")
    private List<PriceFloorDO> floorList;

    @Schema(description = "区域价格")
    private List<PriceAreaDO> areaList;

    @Schema(description = "附加产品设置")
    private List<PriceSpuDO> spuList;

    @Schema(description = "基础区域价格")
    private List<BasicPriceAreaDO> basicAreaList;

}