package com.yc.ship.module.marketing.controller.admin.policy.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import com.yc.ship.framework.excel.core.annotations.DictFormat;
import com.yc.ship.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 营销政策 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PolicyRespVO {

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

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

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

    @Schema(description = "游轮名称")
    @ExcelProperty("游轮名称")
    private String shipName;

    @Schema(description = "航次ID列表")
    private List<Long> voyageIds;

    @Schema(description = "房型ID列表")
    private List<Long> roomModelIds;


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

    @Schema(description = "优惠间数")
    @ExcelProperty("优惠间数")
    private BigDecimal discountNum;

    @Schema(description = "剩余优惠间数")
    @ExcelProperty("剩余优惠间数")
    private BigDecimal surplusNum;

    @Schema(description = "提前天数")
    @ExcelProperty("提前天数")
    private Integer earlyDays;

    @Schema(description = "优惠方式（1金额2折扣）", example = "2")
    @ExcelProperty("优惠方式（1金额2折扣）")
    private Integer discountType;

    @Schema(description = "优惠金额或者折扣", example = "3756")
    @ExcelProperty("优惠金额或者折扣")
    private BigDecimal discount;

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

    @Schema(description = "政策说明")
    @ExcelProperty("政策说明")
    private String instructions;

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

    @Schema(description = "区域IDS")
    private List<Long> areaIds;

    @Schema(description = "国籍IDS")
    private List<Integer> countryIds;

}