PlatformMerchantDubboConfig.java 971 Bytes
package cn.com.glsx.busassistant.config;

import cn.com.glsx.merchants.remote.MerchantRemote;
import cn.com.glsx.merchants.remote.MerchantRoleRemote;
import cn.com.glsx.merchants.remote.MerchantStaffRemote;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 账户中心rpc接口
 */
@Configuration
public class PlatformMerchantDubboConfig extends DubboConfig{


    @Bean
    public MerchantRoleRemote merchantRoleRemote(){
        return factory.builder(MerchantRoleRemote.class).version("2.0.0").check(check).timeout(timeout).build();
    }

    @Bean
    public MerchantStaffRemote merchantStaffRemote(){
        return factory.builder(MerchantStaffRemote.class).version("2.0.0").check(check).timeout(timeout).build();
    }
    @Bean
    public MerchantRemote MerchantRemote(){
        return factory.builder(MerchantRemote.class).version("2.0.0").check(check).timeout(timeout).build();
    }

}