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

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.yc.ship.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.yc.ship.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 营销政策分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class PolicyPageReqVO extends PageParam {

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

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

    @Schema(description = "有效期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] effectiveTime;

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

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

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

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

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

    @Schema(description = "状态", example = "1")
    private Integer status;

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

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}