package com.multictrl.modules.business.dto.multi;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.multictrl.common.validator.group.AddGroup;
import com.multictrl.common.validator.group.UpdateGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;

import java.util.List;

import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

/**
 * @author 张闯
 * @since 2026-05-28
 */
@Data
@Schema(name = "蛙跳组绑定设备列表")
public class MultiGroupDeviceDTO {

    /**
     * 蛙跳组id
     */
    @NotBlank(message = "{group.id.require}", groups = {AddGroup.class, UpdateGroup.class})
    @JsonProperty(required = true)
    @Schema(description = "蛙跳组id")
    private Long groudId;
    /**
     * 网关sn
     */
    @NotEmpty(message = "{gateway.sns.require}", groups = {AddGroup.class, UpdateGroup.class})
    @JsonProperty(required = true)
    @Schema(description = "设备网关sn列表")
    private List<String> gatewaySns;

}
