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

import com.cf.imes.framework.common.pojo.PageParam;
import com.cf.imes.framework.common.validation.NumberValid;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
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;

/**
 * @author Gqr
 * @since 2025/9/15 14:36
 */
@Schema(description = "管理后台 - 产品延期记录分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ProductDelayPageReqVO extends PageParam {
    @Schema(description = "组织编号")
    private String organName;

    @Schema(description = "产品名称")
    @Size(max = 64, message = "{product.delay.page.productName.size}")
    private String productName;

    @Schema(description = "延期时长")
    @NumberValid(name = "product.delay.duration.field")
    private Integer delayDuration;

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

    @Schema(description = "操作人")
    @Size(max = 64, message = "{product.delay.page.operator.size}")
    private String operator;
}
