huangjiajun dc230a42d5 | 1 day ago | |
---|---|---|
app | 1 day ago | |
bin | 1 month ago | |
cmd/task | 3 weeks ago | |
docs | 1 day ago | |
etc | 4 days ago | |
k8s | 2 weeks ago | |
static/html | 4 weeks ago | |
test | 1 month ago | |
.gitignore | 1 month ago | |
Dockerfile | 1 month ago | |
Dockerfile-prd | 1 week ago | |
Dockerfile-task | 2 weeks ago | |
Makefile | 1 month ago | |
README.md | 1 month ago | |
build.sh | 1 month ago | |
cmd_db.bat | 1 month ago | |
cmd_db.sh | 1 month ago | |
cmd_run.bat | 1 month ago | |
cmd_run.sh | 1 month ago | |
cmd_task.bat | 1 month ago | |
cmd_task.sh | 1 month ago | |
dependencies.txt | 3 weeks ago | |
go.mod | 1 day ago | |
main.go | 2 weeks ago | |
profile001.svg | 5 days ago | |
profile002.svg | 5 days ago | |
test.txt | 2 weeks ago | |
wap.conf | 1 month ago |
蛋蛋星球后台管理项目
软件架构说明
> 参考:https://segmentfault.com/a/1190000013808421
> swagger 命令行工具
go get -u github.com/swaggo/swag/cmd/swag
//go版本1.16之前使用该命令
go install github.com/swaggo/swag/cmd/swag
//go版本1.16版本以及之后的版本使用该命令
go install github.com/swaggo/swag/cmd/swag@latest
> swagger 依赖
go get "github.com/swaggo/files"
go get "github.com/swaggo/gin-swagger"
> 生成
swag init
swag init -g main.go -o ./docs --parseDependency (swag 在生成文档时解析外部依赖包)