package com.yc.ship.module.product.controller.admin.productTakeRule.vo;

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.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 ProductTakeRulePageReqVO extends PageParam {

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

    @Schema(description = "取票时间类型 0不限 1游玩当日可取 2有效期内可取 3下单日期可取", example = "1")
    private Integer takeTimeType;

    @Schema(description = "二维码类型 0订单码 1门票码", example = "2")
    private Integer qrcodeType;

    @Schema(description = "打印纸质票 0不打印 1一人一票 2一订单一票 3一基础产品一票", example = "2")
    private Integer printType;

    @Schema(description = "打印模版ID")
    private Long printTemp;

}