feat():learning后台管理项目初始化

This commit is contained in:
yuj
2025-12-04 16:23:46 +08:00
parent 39886d50d2
commit 88e048f4d1
154 changed files with 28966 additions and 6 deletions

25
start_sso.sh Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
# SSO功能启动脚本
echo "=== 启动 goalfymax-admin SSO 服务 ==="
# 检查配置文件
if [ ! -f "etc/config.yaml" ]; then
echo "错误: 配置文件 etc/config.yaml 不存在"
exit 1
fi
echo "配置文件检查通过"
# 检查数据库连接
echo "检查数据库连接..."
# 这里可以添加数据库连接检查逻辑
# 启动服务
echo "启动服务..."
go run cmd/server/main.go -config etc/config.yaml
echo "服务已启动,访问地址: http://localhost:8084"
echo "SSO API 文档: http://localhost:8084/api/sso/"
echo "健康检查: http://localhost:8084/health"