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 javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

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

@Schema(description = "管理后台 - 设备模型新增/修改 Request VO")
@Data
public class DeviceModelSaveReqVO {

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

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

    @Schema(description = "分类id", requiredMode = Schema.RequiredMode.REQUIRED, example = "19154")
    @NotNull(message = "分类id不能为空")
    private Long deviceCategoryId;

    @Schema(description = "厂家id", requiredMode = Schema.RequiredMode.REQUIRED, example = "19154")
    @NotNull(message = "厂家id不能为空")
    private Long deviceManufacturerId;

    @Schema(description = "厂家名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "厂家名称不能为空")
    private String deviceManufacturerName;

    @Schema(description = "图片",  example = "张三")
    private String imageFiles;

    @Schema(description = "设备名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "设备名称不能为空")
    private String deviceName;

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

    @Schema(description = "模型值", example = "赵六")
    private String modelValue;

    @Schema(description = "状态，1启用 0禁用",  example = "2")
    private Integer status;

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

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

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

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

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


}
