Skip to content

Commit 8bf8589

Browse files
committed
update douyin miniapp openapi
0 parents  commit 8bf8589

19 files changed

+4175
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.vscode
2+
.idea
3+
.DS_Store

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# dyma
2+
3+
微信小程序接口,使用protobuf生成的
4+
5+
生成工具是[protoc-gen-go_api](https://github.com/dev-openapi/protoc-gen-go_api)
6+
7+
8+
## 如何使用
9+
10+
在自己的项目中添加此包 github.com/dev-openapi/douyin-miniapp
11+
12+
初始化包 `dyLoginService := miniapp.NewLoginService()`
13+
14+
然后根据自己的需要,用`dyLoginService`去调用想用的接口
15+
16+
## 如何添加新接口
17+
18+
首先要安装protoc,protoc-gen-go和protoc-gen-go_api。前面两个如何安装,请参考网上教程搜索
19+
20+
```shell
21+
go install github.com/dev-openapi/protoc-gen-go_api@latest
22+
```
23+
24+
下载[protocol](https://github.com/dev-openapi/protocol)仓库
25+
26+
下载本项目,与protocol是同一级目录
27+
28+
然后根据文档在protocol项目中写好proto文件,再执行make gen-dyma会自动生成到本项目目录,最后提交两个项目即可

credential.api.go

Lines changed: 80 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

credential.pb.go

Lines changed: 171 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

customer.api.go

Lines changed: 95 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)