first commit

This commit is contained in:
2022-03-17 15:59:24 +08:00
commit 2b0debb847
592 changed files with 73946 additions and 0 deletions

17
script/swag/build.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
file_path=$(
cd "$(dirname "$0")" || exit
pwd
)/../..
echo $file_path
#projectPath = $(dirname $(dirname "$PWD"))
if [ -z $1 ]
then
echo 'ERROR: undefined version
please input gateway version, example: ./build.sh v1'
else
swag init -d $file_path/gateway/api/$1/ -g internal/handler/routes.go -o $file_path/gateway/api/$1/docs/
fi