package com.ruoyi.dj.mqtt.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

import java.util.List;

@Data
@Configuration
@ConfigurationProperties(prefix = "mqtt")
public class DJIMqttConfig {
    private String broker;
    private String username;
    private String password;
    private List<String> topics;

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
