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