feat: rbac迁移完成,并已部署至dev服务器

This commit is contained in:
Blizzard
2026-05-01 01:19:50 +08:00
parent f80a3dc064
commit 8b11068fef
250 changed files with 6314 additions and 13072 deletions
+8 -17
View File
@@ -1,7 +1,7 @@
#!/bin/bash
# Sundynix 微服务启动脚本
# 用法: ./scripts/start.sh [服务名]
# 例如: ./scripts/start.sh user-rpc
# 例如: ./scripts/start.sh system-rpc
# ./scripts/start.sh all (启动所有)
# ./scripts/start.sh gateway
@@ -23,11 +23,8 @@ start_service() {
}
case "${1:-help}" in
user-rpc)
start_service "user-rpc" "$APP_DIR/user/rpc" "user.go" "etc/user.yaml"
;;
user-api)
start_service "user-api" "$APP_DIR/user/api" "user.go" "etc/user-api.yaml"
auth-api)
start_service "auth-api" "$APP_DIR/auth/api" "auth.go" "etc/auth-api.yaml"
;;
file-rpc)
start_service "file-rpc" "$APP_DIR/file/rpc" "file.go" "etc/file.yaml"
@@ -47,29 +44,23 @@ case "${1:-help}" in
plant-api)
start_service "plant-api" "$APP_DIR/plant/api" "plant.go" "etc/plant-api.yaml"
;;
radio-rpc)
start_service "radio-rpc" "$APP_DIR/radio/rpc" "radio.go" "etc/radio.yaml"
;;
radio-api)
start_service "radio-api" "$APP_DIR/radio/api" "radio.go" "etc/radio-api.yaml"
;;
gateway)
start_service "gateway" "$APP_DIR/gateway" "gateway.go" "etc/gateway.yaml"
;;
all)
echo "===== 启动 RPC 层 ====="
start_service "user-rpc" "$APP_DIR/user/rpc" "user.go" "etc/user.yaml"
start_service "file-rpc" "$APP_DIR/file/rpc" "file.go" "etc/file.yaml"
start_service "system-rpc" "$APP_DIR/system/rpc" "system.go" "etc/system.yaml"
start_service "plant-rpc" "$APP_DIR/plant/rpc" "plant.go" "etc/plant.yaml"
start_service "radio-rpc" "$APP_DIR/radio/rpc" "radio.go" "etc/radio.yaml"
sleep 3
echo "===== 启动 API 层 ====="
start_service "user-api" "$APP_DIR/user/api" "user.go" "etc/user-api.yaml"
start_service "auth-api" "$APP_DIR/auth/api" "auth.go" "etc/auth-api.yaml"
start_service "file-api" "$APP_DIR/file/api" "file.go" "etc/file-api.yaml"
start_service "system-api" "$APP_DIR/system/api" "system.go" "etc/system-api.yaml"
start_service "plant-api" "$APP_DIR/plant/api" "plant.go" "etc/plant-api.yaml"
start_service "radio-api" "$APP_DIR/radio/api" "radio.go" "etc/radio-api.yaml"
sleep 2
echo "===== 启动网关 ====="
start_service "gateway" "$APP_DIR/gateway" "gateway.go" "etc/gateway.yaml"
@@ -83,6 +74,6 @@ case "${1:-help}" in
echo "✅ 已停止"
;;
*)
echo "用法: $0 {user-rpc|user-api|file-rpc|file-api|system-rpc|system-api|plant-rpc|plant-api|radio-rpc|radio-api|gateway|all|stop}"
echo "用法: $0 {auth-api|file-rpc|file-api|system-rpc|system-api|plant-rpc|plant-api|gateway|all|stop}"
;;
esac