This commit is contained in:
zlwu committed 2025-11-13 18:07:07 +08:00
1 parent 6ca85a1b15
commit 7d4bfaecb3
45 files changed
+7015 -1762

No files matched your search

@@ -0,0 +1,26 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
数据库配置文件
用于超星数据移植与定时同步脚本
"""
# 数据库配置信息
DB_CONFIG = {
"host": "47.99.164.66",
"port": 3306,
"database": "hzdyjs_xg",
"user": "root",
"password": "hn02le.34lkdLKD",
"charset": "utf8mb4"
}
# 表名映射(API类型 -> 数据库表名)
TABLE_MAPPING = {
"class": "cx_bjsj", # 班级数据
"department": "cx_xbsj", # 系部数据
"student": "cx_xssj", # 学生数据
"student_change": "cx_xsydsj", # 学籍异动数据
"major": "cx_zysj" # 专业数据
}