|
|
hace 2 años | |
|---|---|---|
| common | hace 2 años | |
| conf | hace 2 años | |
| controllers | hace 2 años | |
| docs | hace 2 años | |
| dto | hace 2 años | |
| logs | hace 2 años | |
| middleware | hace 2 años | |
| models | hace 2 años | |
| routers | hace 2 años | |
| services | hace 2 años | |
| tests | hace 2 años | |
| utils | hace 2 años | |
| .gitignore | hace 2 años | |
| Makefile | hace 2 años | |
| README.md | hace 2 años | |
| go.mod | hace 2 años | |
| go.sum | hace 2 años | |
| main.go | hace 2 años |
使用 bee generate docs 生成符合 swagger 使用的两个文档 swagger.json 和 swagger.yml 使用命令 bee run -downdoc=true 更新 swagger-ui ,如果 swagger 目录没有 swagger-ui 则会自动下载安装 使用命令 bee run -gendoc=true 让项目重新编译也会生成 swagger 文档 重点: 这里建议 直接使用命令 bee run -gendoc=true -downdoc=true 结合两个方法
swag init --parseDependency --parseDepth=6