package cn.iocoder.yudao.module.pms.controller.admin.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description = "管理后台 - 设备台账 精简列表 Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotDeviceSimpleRespVO {

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

    @Schema(description = "资产编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("资产编码")
    private String deviceCode;

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

    @Schema(description = "品牌", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("品牌")
    private Long brand;

    @Schema(description = "规格型号")
    @ExcelProperty("规格型号")
    private String model;

    @Schema(description = "所在部门", requiredMode = Schema.RequiredMode.REQUIRED, example = "8581")
    @ExcelProperty("所在部门")
    private Long deptId;

    @Schema(description = "设备状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("设备状态")
    private String deviceStatus;

    @Schema(description = "资产性质", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("资产性质")
    private String assetProperty;

    @Schema(description = "图片", example = "https://www.iocoder.cn")
    @ExcelProperty("图片")
    private String picUrl;

    /**
     * 扩展字段
     */
    @Schema(description = "设备所属部门名称", example = "HY-1")
    private String deptName;

    @Schema(description = "设备状态名称", example = "施工")
    private String deviceStatusName;

    @Schema(description = "设备责任人 逗号分隔", example = "张三、李四")
    private String devicePersons;
}
