feat: analysis user auth and ws
This commit is contained in:
+11
-1
@@ -24,6 +24,15 @@ function gen_one() {
|
||||
|
||||
# 关键:只删除server.go,logic、dao、etc全部保留不动
|
||||
rm -f "${ZRPC_OUT}/internal/server/${svc}server.go"
|
||||
rm -f "${ZRPC_OUT}/internal/server/${svc}Server.go"
|
||||
|
||||
MULTI_FLAG=""
|
||||
if grep -Eq '^service[[:space:]]+' "${PROTO}"; then
|
||||
svc_count=$(grep -Ec '^service[[:space:]]+' "${PROTO}" || true)
|
||||
if [ "${svc_count}" -gt 1 ]; then
|
||||
MULTI_FLAG="-m"
|
||||
fi
|
||||
fi
|
||||
|
||||
goctl rpc protoc "${PROTO}" \
|
||||
--proto_path="${THIRD_PARTY}" \
|
||||
@@ -34,7 +43,8 @@ function gen_one() {
|
||||
--go_opt=M"${svc}/${svc}.proto"="./" \
|
||||
--go-grpc_opt=M"${svc}/${svc}.proto"="./" \
|
||||
--zrpc_out="${ZRPC_OUT}" \
|
||||
--style=goZero
|
||||
--style=goZero \
|
||||
${MULTI_FLAG}
|
||||
|
||||
# rm -rf "${PB_OUT}/lone-services"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user