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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 营销政策新增/修改 Request VO")
@Data
public class PolicySaveReqVO {

    @Schema(description = "ID", example = "26730")
    private Long id;

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

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

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

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

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

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

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

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

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

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

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

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

}