package com.cf.imes.module.system.controller.admin.funds.productpromotion.vo;

import com.cf.imes.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.cf.imes.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 ProductPromotionPageReqVO extends PageParam {

    @Schema(description = "活动id", example = "1")
    private Long id;

    @Schema(description = "活动名称", example = "赵六")
    private String activityName;

    @Schema(description = "购买时长",example = "1")
    private Integer purchaseDuration;

    @Schema(description = "赠送时长",example = "1")
    private Integer giftDuration;

    @Schema(description = "投放时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] startTime;

    @Schema(description = "投放结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] endTime;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "排序", example = "ascend")
    private String order;

    @Schema(description = "排序字段", example = "id")
    private String field;

}
