package com.casic.missiles.dto.equipment;

import com.casic.missiles.annotation.DictCodeField;
import com.casic.missiles.constants.MeterDictCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel
@Data
public class EquipmentOrSampleDto {
    /**
     * id
     */
    @ApiModelProperty(value = "主键", dataType = "Long")
    private Long id;

    /**
     * 设备/样品编号
     */
    @ApiModelProperty(value = "设备/样品编号", dataType = "String")
    private String assetNo;

    /**
     * 设备/样品名称
     */
    @ApiModelProperty(value = "设备/样品名称", dataType = "String")
    private String assetName;


    /**
     * 类型
     */
    @ApiModelProperty(value = "类型", dataType = "String")
    @DictCodeField(message = "类型", cacheName = MeterDictCode.APP_AGGREGATE_QUERY_TYPE)
    private String assetType;

    /**
     * 类型名称
     */
    @ApiModelProperty(value = "类型名称不合法", dataType = "String")
    private String assetTypeName;
}
