package cn.iocoder.yudao.module.system.controller.admin.biz.vo;

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;

/**
 * @Author: jinyd
 * @CreateTime: 2024/10/17  14:10
 * @Description:
 * @Version: 4.0
 */


@Schema(description = "管理后台 - 设备模型字段映射 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ModelFieldRespVO {
    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "5878")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "设备模型id", requiredMode = Schema.RequiredMode.REQUIRED, example = "4722")
    @ExcelProperty("设备模型id")
    private Long deviceModelId;

    @Schema(description = "原字段名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @ExcelProperty("原字段名称")
    private String originalColumnName;

    @Schema(description = "原数据类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("原数据类型")
    private String originalDataType;

    @Schema(description = "原字段注释", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("原字段注释")
    private String originalColumnComment;

    @Schema(description = "现字段名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @ExcelProperty("现字段名称")
    private String columnName;

    @Schema(description = "现数据类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("现数据类型")
    private String dataType;

    @Schema(description = "现字段注释", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("现字段注释")
    private String columnComment;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("排序")
    private Integer sort;

    @Schema(description = "存储数据表", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("存储数据表")
    private String tableName;

    @Schema(description = "类型，0-健康，1-监控，2-睡眠，3-跌倒，4-安防，5-腕表，6-环境", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("类型，0-健康，1-监控，2-睡眠，3-跌倒，4-安防，5-腕表，6-环境")
    private Integer modelType;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;
}
