Sen descrición

zoie 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos
common 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos
conf 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos
controllers 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos
docs 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos
dto 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos
logs 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos
middleware 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos
models 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos
routers 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos
services 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos
tests 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos
utils 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos
.gitignore 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos
Makefile 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos
README.md 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos
go.mod 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos
go.sum 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos
main.go 4e486d8aa2 2023-11-16 基本信息 %!s(int64=2) %!d(string=hai) anos

README.md

配置 swagger

使用 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 结合两个方法

接口文档

生成swagger文档

swag init --parseDependency --parseDepth=6