You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
4 months ago | |
---|---|---|
1.7.3 | 6 months ago | |
readme.md | 4 months ago |
readme.md
开始新项目
- 检查环境
goctl env check --install --verbose --force
- 创建项目,xxx 改为项目名
mkdir xxx
cd xxx
go mod init xxx
go get -u github.com/zeromicro/go-zero@latest
go mod tidy
- 创建服务
mkdir api
cd api
goctl api new xxx --style go-zero --remote https://gitea.gxxhygroup.com/dark/zero-template
cd xxx
go mod tidy
- 根据 xxx.api 生成代码
goctl api go -api xxx.api -dir . --style go-zero --remote https://gitea.gxxhygroup.com/dark/zero-template