package cn.iocoder.yudao.module.member.controller.admin.activityvoucher.vo;

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

import static cn.iocoder.yudao.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 ActivityVoucherPageReqVO extends PageParam {

    @Schema(description = "代金券名字", example = "张三")
    private String name;

    @Schema(description = "类型 1-折扣，2-抵扣", example = "2")
    private String type;

    @Schema(description = "数值")
    private BigDecimal num;

    @Schema(description = "使用次数")
    private Integer limitNum;

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

}