fusenapi/fs_gen_api_backend.sh

7 lines
224 B
Bash
Raw Normal View History

2023-06-25 10:30:39 +00:00
#! /bin/bash
# 专为后台序列化
name=${1%\/}
echo $name
goctl api go -api server_api/$name.api -dir server/$name --home ./goctl_template_backend/
# ctxName=server/$name/internal/svc/servicecontext.go
# gofmt -w $ctxName