package org.sky.resource.config;

import lombok.AllArgsConstructor;
import org.sky.core.literule.engine.RuleEngineExecutor;
import org.sky.core.redis.cache.KdRedis;
import org.sky.core.sms.props.SmsProperties;
import org.sky.resource.builder.SmsBuilder;
import org.sky.resource.service.ISmsService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Sms配置类
 *
 */
@Configuration(proxyBeanMethods = false)
@AllArgsConstructor
public class KdSmsConfiguration {

	private final SmsProperties smsProperties;

	private final ISmsService smsService;

	private final KdRedis kdRedis;

	private final RuleEngineExecutor ruleExecutor;

	@Bean
	public SmsBuilder smsBuilder() {
		return new SmsBuilder(smsProperties, smsService, kdRedis, ruleExecutor);
	}

}
