package com.zd.airbottle.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import java.util.List;

/**
 * 气瓶对象 qp_air_bottle
 *
 * @author zd
 * @date 2022-05-10
 */
@ApiModel("气瓶数据接收类")
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class QpAirBottleDto {

    /**
     * 主键id,数据唯一标识
     */
    @ApiModelProperty(value = "${comment}")
    private Long id;
    /**
     * 气体名称
     */
    @Length(message = "气体名称长度不能超过50")
    @ApiModelProperty(value = "气体名称")
    private String airName;

    /**
     * 气题配置ID
     */
    @ApiModelProperty(value = "气题配置ID")
    private Long configId;
    /**
     * 气体组成
     */
    @Length(message = "气体组成长度不能超过200")
    @ApiModelProperty(value = "气体组成")
    private String airConstituents;

    @ApiModelProperty(value = "气瓶规格集合")
    private List<QpAirBottleConfigDto> configDtos;
}