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

import com.zt.plat.module.qms.core.aspect.annotation.Dict;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 数据集字段 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DataCollectionFieldRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "21752")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "数据集ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1538")
    @ExcelProperty("数据集ID")
    private Long dataCollectionId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("名称")
    private String fieldName;

    @Schema(description = "字段key", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("字段key")
    private String fieldKey;

    @Schema(description = "字段类型", example = "1")
    @ExcelProperty("字段类型")
    @Dict(dicCode = "dataCollectFieldType")
    private String fieldType;

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

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

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

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

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

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}