package cn.iocoder.yudao.module.system.controller.admin.biz.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 static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

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


@Schema(description = "管理后台 - 设备模型字段映射分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ModelFieldPageReqVO extends PageParam {

    @Schema(description = "设备模型id", example = "4722")
    private Long deviceModelId;

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

    @Schema(description = "原数据类型", example = "2")
    private String originalDataType;

    @Schema(description = "原字段注释")
    private String originalColumnComment;

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

    @Schema(description = "现数据类型", example = "2")
    private String dataType;

    @Schema(description = "现字段注释")
    private String columnComment;

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

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

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

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

}
