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

import cn.iocoder.yudao.module.system.dal.dataobject.biz.ModelFieldDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author: jinyd
 * @CreateTime: 2024/10/16  9:18
 * @Description:
 * @Version: 4.0
 */

@Schema(description = "管理后台 - 设备模型 Response VO")
@Data
public class DeviceModelRespVO {

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

    @Schema(description = "上级主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "11002")
    private Long parentId;

    @Schema(description = "分类id", requiredMode = Schema.RequiredMode.REQUIRED, example = "19154")
    private Long deviceCategoryId;

    @Schema(description = "厂家id", requiredMode = Schema.RequiredMode.REQUIRED, example = "19154")
    private Long deviceManufacturerId;

    @Schema(description = "厂家名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "19154")
    private String deviceManufacturerName;

    @Schema(description = "设备名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    private String deviceName;

    @Schema(description = "型号", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    private String modelName;

    @Schema(description = "模型值")
    private String modelValue;

    @Schema(description = "状态，0-开启，1-禁用", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private Integer status;

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

    @Schema(description = "组合方式，0-独立模型，1-组合模型", example = "2")
    private Integer combinationType;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
    private String remark;

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

    @Schema(description = "库表模型值", requiredMode = Schema.RequiredMode.REQUIRED)
    List<ModelTableFieldVO> originalList;

    @Schema(description = "新模型值", requiredMode = Schema.RequiredMode.REQUIRED)
    List<ModelFieldDO> modelFieldList;

    @Schema(description = "子设备列表", requiredMode = Schema.RequiredMode.REQUIRED)
    List<DeviceModelSubRespVO> subList;

}
