File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 1
-
2
-
3
- ## 如何使用` WxJava ` 进行小程序云开发
1
+ ## 如何使用 ` WxJava ` 进行小程序云开发
4
2
5
3
[ 云开发-一站式后端云服务] ( https://tencentcloudbase.github.io/ )
6
4
7
- ### 一、 引入maven依赖
5
+ ### 一、 引入` maven ` 依赖
6
+
8
7
9
8
```
10
9
<dependency>
37
36
38
37
### 四、 根据小程序前端需要调用相应的方法:
39
38
40
- 目前WxJava 已支持当前所有接口(当然如果官方后续加入新接口,则还未在最新版本中实现,会考虑在之后版本中加入),所有以支持接口可以参考JavaDoc在线版本 :http://binary.ac.cn/weixin-java-miniapp-javadoc/cn/binarywang/wx/miniapp/api/WxMaCloudService.html
39
+ 目前 ` WxJava ` 已支持当前所有接口(当然如果官方后续加入新接口,则还未在最新版本中实现,会考虑在之后版本中加入),所有已支持的接口列表可以参考在线 ` JavaDoc ` :http://binary.ac.cn/weixin-java-miniapp-javadoc/cn/binarywang/wx/miniapp/api/WxMaCloudService.html
41
40
42
41
43
- 以触发云函数接口为例,可以采用如下方式调用invokeCloudFunction方法 :
42
+ 以触发云函数接口为例,可以采用如下方式调用 ` invokeCloudFunction ` 方法 :
44
43
45
44
46
45
```
47
- String result = wxMaService.getCloudService().invokeCloudFunction("rcn", "login", "{}"); // 拿到resule之后 ,可以在后续加入自己的处理逻辑代码
46
+ String result = wxMaService.getCloudService().invokeCloudFunction("rcn", "login", "{}"); // 拿到result之后 ,可以在后续加入自己的处理逻辑代码
48
47
```
49
48
50
49
51
- 更多方法调用实例可以参考WxJava源码中的单元测试类 :` cn.binarywang.wx.miniapp.api.impl.WxMaCloudServiceImplTest `
50
+ 更多方法调用实例可以参考 ` WxJava ` 源码中的单元测试类 :` cn.binarywang.wx.miniapp.api.impl.WxMaCloudServiceImplTest `
52
51
53
- ### 五、 Spring框架整合 :
52
+ ### 五、 ` Spring ` 框架整合 :
54
53
55
- 可以参考https://github.com/binarywang/weixin-java-miniapp-demo 此项目整合Spring开发 。
56
- 此项目基于spring boot,如果需要支持Spring MVC项目 ,适当改造即可。
54
+ 可以参考https://github.com/binarywang/weixin-java-miniapp-demo 此项目整合 ` Spring ` 开发 。
55
+ 此项目基于 ` Spring Boot ` ,如果需要支持 ` Spring MVC ` 项目 ,适当改造即可。
You can’t perform that action at this time.
0 commit comments