package com.yc.ship.module.trade.controller.admin.order.vo.rule;

import com.yc.ship.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
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 MarketingPageReqVO extends PageParam {

    @Schema(description = "名称", example = "张三")
    private String name;

    @Schema(description = "政策类型", example = "2")
    private Integer policyType;

    @Schema(description = "政策执行标准")
    private Integer policyStandard;

    @Schema(description = "是否启用", example = "1")
    private Integer useStatus;

    @Schema(description = "政策开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] policyStartTime;

    @Schema(description = "政策结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] policyEndTime;

    @Schema(description = "是否指定产品")
    private Integer isProduct;

    @Schema(description = "满张数")
    private Integer fullNum;

    @Schema(description = "赠送张数")
    private Integer giveNum;

    @Schema(description = "满金额")
    private BigDecimal fullAmount;

    @Schema(description = "赠送金额")
    private BigDecimal giveAmount;

    @Schema(description = "打折比例", example = "32276")
    private BigDecimal discount;

    @Schema(description = "优惠劵金额")
    private BigDecimal coupon;

    @Schema(description = "政策内容")
    private String content;

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

}