update doc

This commit is contained in:
kevin
2020-08-14 15:31:10 +08:00
parent 8745039877
commit 6ef1b5e14c
2 changed files with 32 additions and 21 deletions

View File

@@ -149,18 +149,18 @@ go-zero是一个集成了各种工程实践的包含web和rpc框架有如下
```shell
cd greet
go run greet.go -f etc/greet-api.json
```
```
默认侦听在8888端口可以在配置文件里修改可以通过curl请求
```shell
➜ go-zero git:(master) curl -w "\ncode: %{http_code}\n" http://localhost:8888/greet/from/kevin
{"code":0}
code: 200
```
```
编写业务代码:
* 可以在servicecontext.go里面传递依赖给logic比如mysql, redis等
* 在api定义的get/post/put/delete等请求对应的logic里增加业务处理逻辑
@@ -172,6 +172,10 @@ go-zero是一个集成了各种工程实践的包含web和rpc框架有如下
...
```
## 8. 文档
* [goctl使用帮助](doc/goctl.md)
### 微信交流群
添加我的微信kevwan请注明go-zero我拉进go-zero社区群🤝