Files
jx-callback/gen_param_parser.sh
2025-11-18 10:57:04 +08:00

13 lines
332 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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