jdshop添加bee

This commit is contained in:
邹宗楠
2025-11-18 10:57:04 +08:00
parent 8d00041945
commit 2c4fbe7ba6

View File

@@ -1,5 +1,12 @@
if [ -f "controllers/param_parser.go" ]; then
rm controllers/param_parser.go
fi
if ! command -v bee &> /dev/null; then
echo "错误bee 命令未找到,尝试安装..."
go get github.com/beego/bee/v2
export PATH=$PATH:$GOPATH/bin
fi
bee generate docs
cp swagger/param_parser.go.txt controllers/param_parser.go