GopDubboConfig.java
1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package cn.com.glsx.dj.weapp.config;
import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import cn.com.glsx.dj.gop.remote.GopBoutiqueDeliveryRemote;
import cn.com.glsx.dj.gop.remote.GopCarInfoRemote;
import cn.com.glsx.dj.gop.remote.GopCreateQrCodeRemote;
import cn.com.glsx.dj.gop.remote.GopMileageRemote;
import cn.com.glsx.dj.gop.remote.GopSendTemplateMessageRemote;
@Configuration
public class GopDubboConfig {
@Autowired
private ReferenceBuilderFactory factory;
@Bean
public GopBoutiqueDeliveryRemote gopBoutiqueDeliveryRemote() {
return factory.builder(GopBoutiqueDeliveryRemote.class).check(false).timeout(30000).build();
}
/**
* 发送模板消息
* @return
* @author zhangyan
* @date 2020年4月7日09:42:29
*/
@Bean
public GopSendTemplateMessageRemote gopSendTemplateMessageRemote(){
return factory.builder(GopSendTemplateMessageRemote.class).check(false).timeout(30000).build();
}
/**
* 设备里程接口
* @return
*/
@Bean
public GopMileageRemote gopMileageRemote(){
return factory.builder(GopMileageRemote.class).check(false).timeout(30000).build();
}
/**
* 车型
*/
@Bean
public GopCarInfoRemote gopCarInfoRemote(){
return factory.builder(GopCarInfoRemote.class).timeout(30000).check(false).build();
}
@Bean
public GopCreateQrCodeRemote gopCreateQrCodeRemote(){
return factory.builder(GopCreateQrCodeRemote.class).timeout(30000).check(false).build();
}
}