CouponConfig.java
988 Bytes
package cn.com.glsx.stoassistant.config;
import cn.com.glsx.scrm.coupon.remote.GroupDirectionalGiftRemote;
import cn.com.glsx.scrm.coupon.remote.UserCouponRemote;
import cn.com.glsx.scrm.coupon.remote.UserCouponVerficationRemote;
import cn.com.glsx.scrm.shopmall.remote.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class CouponConfig extends DubboConfig {
@Bean
public UserCouponRemote userCouponRemote(){
return factory.builder(UserCouponRemote.class).check(false).timeout(30000).build();
}
@Bean
public GroupDirectionalGiftRemote groupDirectionalGiftRemote() {
return factory.builder(GroupDirectionalGiftRemote.class).timeout(30000).check(false).build();
}
@Bean
public UserCouponVerficationRemote userCouponVerficationRemote(){
return factory.builder(UserCouponVerficationRemote.class).check(false).timeout(30000).build();
}
}