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

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 PriceTemplateSaveReqVO {

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

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

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

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

    @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 = "基准价格", example = "10043")
    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;

}