package com.njzscloud.supervisory.config;

import com.njzscloud.common.http.HttpClientDecorator;
import com.njzscloud.supervisory.gps.tuqiang.jimi.support.JimiApi;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnBean(HttpClientDecorator.class)
public class JimiApiAutoConfiguration {
    @Bean
    public JimiApi jimiApi(HttpClientDecorator httpClientDecorator) {
        return httpClientDecorator.decorate(JimiApi.class);
    }
}
