package com.ruoyi.common.pay.yst.config;

import com.ruoyi.common.pay.yst.util.YstClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wjh
 * 2024/8/1
 */
@Configuration
public class YstBeanConfig {

    @Autowired
    private YstConfig ystConfig;

    @Bean
    public YstClient ystClient() throws Exception {
        return new YstClient(ystConfig);
    }

}
