2023-06-25 10:30:39 +00:00
|
|
|
#! /bin/bash
|
2023-06-25 11:33:25 +00:00
|
|
|
name=${1%%\\*}
|
2023-06-26 10:32:28 +00:00
|
|
|
options=("backend" "product-template" "product-model")
|
2023-06-25 11:33:25 +00:00
|
|
|
for option in "${options[@]}"; do
|
|
|
|
if [ "$name" = "$option" ]; then
|
|
|
|
echo $name
|
|
|
|
goctl api go -api server_api/$name.api -dir server/$name --home ./goctl_template_backend/
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
for option in "${options[@]}"; do
|
|
|
|
echo "只支持 $option"
|
|
|
|
done
|