package com.yuchen.saas.parking.charge.api.vo.charge;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(value = "设备分组列表明细")
public class SpcStationChargeEquipmentGroupVO {
    @ApiModelProperty(name = "id", value = "分组id")

    private Long  id;
    @ApiModelProperty(name = "groupName", value = "分组名称")

    private String  groupName;
    @ApiModelProperty(name = "equipmentGroupConnectDetails", value = "分组下的设备列表")
    private List<StationChargeEquipmentGroupConnect> equipmentGroupConnectList;

    @Data
    @ApiModel(value = "分组下的设备")
    public static class StationChargeEquipmentGroupConnect{
        /**
         * 设备id
         */
        @ApiModelProperty(name = "equipmentId", value = "设备id")
        @NotNull(message = "设备id不能为空")
        private Long equipmentId;
        /**
         * 设备名称
         */
        @ApiModelProperty(name = "equipmentName", value = "设备名称")
        @NotNull(message = "设备名称不能为空")
        private String equipmentName;
    }
}
