package com.zsc.edu.gateway.modules.iot.device.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.UniqueElements;

import java.util.Map;

/**
 * @author 15864
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
public class DeviceServeDto {
    /**
     * 设备ID
     */
    @NotNull
    public Long id;
    /**
     * 客户ID
     */
    @NotNull
    @UniqueElements
    public String clientId;

    /**
     * 触发事件名称
     */
    public String serveName;

    /**
     * 图标
     */
    public String iconId;

    /**
     * 预览图
     */
    public String previewId;

    /**
     * 参数
     */
    public Map<String, Object> params;

}
