package com.zt.plat.module.qms.common.data.controller.vo;

import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 数据集字段分页 Request VO")
@Data
public class DataCollectionFieldPageReqVO extends PageParam {

    @Schema(description = "数据集ID", example = "1538")
    private Long dataCollectionId;

    @Schema(description = "名称", example = "李四")
    private String fieldName;

    @Schema(description = "字段key")
    private String fieldKey;

    @Schema(description = "字段类型,【字典】【jy_data_collect_field_type】文件、记录、模板", example = "1")
    private String fieldType;

    @Schema(description = "禁用状态,0-启用；1-禁用")
    private String cancelFlag;

    @Schema(description = "排序号")
    private Integer sortNo;

    @Schema(description = "其他配置")
    private String customConfig;

    @Schema(description = "所属部门")
    private String systemDepartmentCode;

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

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

    //===================扩展字段============
    @Schema(description = "数据集Key")
    private String dataCollectionKey;

}