#!/bin/bash
# 查看所有服务状态

echo "========================================="
echo " HZHub 所有服务状态"
echo "========================================="

echo ""
echo "1️⃣  AI 服务 (hzhub-ai):"
echo "---"
cd /data/hzhub/hzhub-ai
./status.sh

echo ""
echo "2️⃣  系统服务 (hzhub-system):"
echo "---"
cd /data/hzhub/hzhub-system
./status.sh

echo ""
echo "3️⃣  API 网关 (hzhub-gateway):"
echo "---"
cd /data/hzhub/hzhub-gateway
./status.sh

echo ""
echo "4️⃣  ERP 服务 (hzhub-erp):"
echo "---"
cd /data/hzhub/hzhub-erp
./status.sh

echo ""
echo "5️⃣  管理后台 (hzhub-admin):"
echo "---"
cd /data/hzhub/hzhub-admin
./status.sh

echo ""
echo "6️⃣  员工门户 (hzhub-portal-employee):"
echo "---"
cd /data/hzhub/hzhub-portal-employee
./status.sh

echo ""
echo "7️⃣  经销商门户 (hzhub-portal-dealer):"
echo "---"
cd /data/hzhub/hzhub-portal-dealer
./status.sh 2>/dev/null

echo ""
echo "========================================="
echo " 服务端口:"
echo "  API网关:    8080 (统一入口)"
echo "  AI服务:     6039"
echo "  系统服务:   8083 (认证/系统/工作流/代码生成)"
echo "  ERP服务:    8082"
echo "  管理后台:   5666"
echo "  员工门户:   5137"
echo "  经销商门户: 5138"
echo "========================================="
echo ""
