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

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.yc.ship.framework.excel.core.annotations.DictFormat;
import com.yc.ship.framework.excel.core.convert.DictConvert;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 价格模板 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PriceTemplateRespVO {

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

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

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

    @Schema(description = "游轮名称", example = "王五")
    @ExcelProperty("游轮名称")
    private String shipName;
    @Schema(description = "航线ID", example = "4674")
    @ExcelProperty("航线ID")
    private Long routeId;

    @Schema(description = "航线名称", example = "王五")
    private String routeName;

    @Schema(description = "价格模式")
    @ExcelProperty(value = "价格模式", converter = DictConvert.class)
    @DictFormat("product_price_model") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer priceMode;

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

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "基准价格", example = "10043")
    private BigDecimal basicPrice;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

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

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

    @Schema(description = "区域加价设置")
    private List<PriceAreaRespVO> areaList;

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

    @Schema(description = "区域基准价设置")
    private List<BasicPriceAreaRespVO> basicAreaList;

}