feat: analysis user auth and ws

This commit is contained in:
zzw
2026-10-15 09:23:07 +08:00
parent 6fa185003d
commit a65b6d2803
102 changed files with 4966 additions and 786 deletions
+11 -1
View File
@@ -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"