提交
This commit is contained in:
1 parent
3c629d2d58
commit
34c33ebc54
12 files changed
+1206
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": "his_bjsj", # 班级数据
|
||||
"department": "his_xbsj", # 系部数据
|
||||
"student": "his_xssj", # 学生数据
|
||||
"major": "his_zysj" , # 专业数据
|
||||
"teacher": "his_lssj" # 老师数据
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user