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


import com.cf.imes.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
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)
@Builder
public class PurchaseRecordPageReqVO extends PageParam {


    @Schema(description = "组织ID")
    private Long organId;


    @Schema(description = "产品名称")
    private String productName;


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


    @Schema(description = "购买时间", example = "[2022-07-01 01:01:01 ,2022-07-01 01:01:01]")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;


    @Schema(description = "操作人")
    private String creator;




}
