package cn.iocoder.yudao.module.pms.controller.admin.iotattachment.vo;

import cn.iocoder.yudao.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 java.util.Collection;

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 IotAttachmentPageReqVO extends PageParam {

    @Schema(description = "所属功能模块(保养/维修/巡检/日报...)")
    private String category;

    @Schema(description = "业务主键id", example = "3510")
    private Long bizId;

    @Schema(description = "类别(施工设计/完工报告)", example = "2")
    private String type;

    @Schema(description = "文件名称", example = "芋艿")
    private String filename;

    @Schema(description = "文件类型", example = "1")
    private String fileType;

    @Schema(description = "文件路径")
    private String filePath;

    @Schema(description = "文件大小")
    private String fileSize;

    @Schema(description = "备注", example = "随便")
    private String remark;

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

    @Schema(description = "业务主键id 集合", example = "3510,3610")
    private Collection<Long> bizIds;

    @Schema(description = "附件类型 集合", example = "CONSTRUCTION_DESIGN,GEOLOGICAL_DESIGN,COMPLETION_REPORT")
    private Collection<String> types;
}