This commit is contained in:
zlwu committed 2025-12-23 22:25:02 +08:00
1 parent 68b8feffc1
commit fca7096e9f
30 files changed
+4049 -8

No files matched your search

+26
View File
@@ -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": "his_bjsj", # 班级数据
"department": "his_xbsj", # 系部数据
"student": "his_xssj", # 学生数据
"major": "his_zysj" , # 专业数据
"teacher": "his_lssj" # 老师数据
}