fusenapi/fs_gen_api.sh

15 lines
356 B
Bash
Raw Normal View History

2023-06-05 09:56:55 +00:00
#! /bin/bash
2023-06-25 11:33:25 +00:00
name=${1%%\\*}
2023-06-26 10:19:51 +00:00
options=("backend")
for option in "${options[@]}"; do
if [ "$name" = "$option" ]; then
echo "不能在"$name"里使用"
exit
fi
done
2023-06-08 02:51:56 +00:00
echo $name
2023-06-21 04:21:56 +00:00
goctl api go -api server_api/$name.api -dir server/$name --home ./goctl_template/
# ctxName=server/$name/internal/svc/servicecontext.go
# gofmt -w $ctxName