Skip to content

Commit

Permalink
kratosV2通过命令行生成代码
Browse files Browse the repository at this point in the history
  • Loading branch information
feixiao committed May 27, 2021
1 parent d7eb791 commit ceb8d1c
Show file tree
Hide file tree
Showing 8 changed files with 1,497 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kratosV2/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ kratos new helloworld
cd helloworld
# 拉取项目依赖
go mod download

# 生成proto模板
kratos proto add api/helloworld/helloworld.proto

# 生成proto源码
kratos proto client api/helloworld/helloworld.proto

# 生成server模板
kratos proto server api/helloworld/helloworld.proto -t internal/service
```
Loading

0 comments on commit ceb8d1c

Please sign in to comment.