Compare commits

..

60 Commits

Author SHA1 Message Date
b577d6287f 'commit' 2025-09-12 22:04:06 +08:00
a5a164514c 'commit' 2025-09-12 21:58:23 +08:00
6162ceddb7 'commit' 2025-09-12 21:57:36 +08:00
86e262461c 'commit' 2025-09-12 21:35:19 +08:00
d211c9ee7e 'commit' 2025-09-12 21:34:39 +08:00
a3813e77d6 'commit' 2025-09-12 21:31:45 +08:00
14df704f6c 'commit' 2025-09-12 21:13:45 +08:00
4052d53720 'commit' 2025-09-12 20:52:15 +08:00
dd81331a57 'commit' 2025-09-12 14:25:02 +08:00
74e908f5de 'commit' 2025-09-12 14:01:14 +08:00
7860d08c81 'commit' 2025-09-12 13:08:43 +08:00
8483e4509b 'commit' 2025-09-12 12:00:07 +08:00
28ff2a93e1 'commit' 2025-09-12 09:24:50 +08:00
ec38a25087 Merge branch 'main' of http://10.10.14.176:3000/huanghai/YunNanProject 2025-09-12 08:50:43 +08:00
f5147e7951 'commit' 2025-09-12 08:50:42 +08:00
22a2ead9f4 Merge branch 'main' of http://10.10.14.176:3000/huanghai/YunNanProject 2025-09-12 08:22:30 +08:00
21c5be3121 'commit' 2025-09-12 08:22:28 +08:00
cbabf9c956 'commit' 2025-09-11 21:42:06 +08:00
ec35818b13 'commit' 2025-09-11 21:34:02 +08:00
9349d582b6 'commit' 2025-09-11 21:23:39 +08:00
b821e316ca 'commit' 2025-09-11 21:17:10 +08:00
13730b1e92 'commit' 2025-09-11 20:53:28 +08:00
caca8500b6 'commit' 2025-09-11 20:50:59 +08:00
3e3343fa81 'commit' 2025-09-11 20:47:42 +08:00
649195dfeb 'commit' 2025-09-11 20:41:16 +08:00
8ad6275847 'commit' 2025-09-11 20:28:53 +08:00
6a1a67ac07 'commit' 2025-09-11 20:25:05 +08:00
a941049482 'commit' 2025-09-11 20:22:23 +08:00
fb715c2a83 'commit' 2025-09-11 20:12:57 +08:00
f3b79dc883 Merge branch 'main' of http://10.10.14.176:3000/huanghai/YunNanProject 2025-09-11 15:16:14 +08:00
0f199e5d29 'commit' 2025-09-11 15:16:13 +08:00
e85799be93 Merge branch 'main' of http://10.10.14.176:3000/huanghai/YunNanProject 2025-09-11 15:14:30 +08:00
59ed6b110e 'commit' 2025-09-11 15:14:30 +08:00
ef4c4afafc Merge branch 'main' of http://10.10.14.176:3000/huanghai/YunNanProject 2025-09-11 15:12:33 +08:00
933bb91be7 'commit' 2025-09-11 15:12:33 +08:00
06d1f924f2 'commit' 2025-09-11 15:04:14 +08:00
3998fc722f Merge branch 'main' of http://10.10.14.176:3000/huanghai/YunNanProject 2025-09-11 14:59:21 +08:00
c088fee4c1 'commit' 2025-09-11 14:59:20 +08:00
21dee17af4 'commit' 2025-09-11 14:59:10 +08:00
882c261b17 Merge branch 'main' of http://10.10.14.176:3000/huanghai/YunNanProject 2025-09-11 14:57:38 +08:00
1a99814db1 'commit' 2025-09-11 14:57:37 +08:00
348b076093 Merge branch 'main' of http://10.10.14.176:3000/huanghai/YunNanProject 2025-09-11 14:51:21 +08:00
a783438696 'commit' 2025-09-11 14:51:20 +08:00
321d9b41b4 'commit' 2025-09-11 14:51:12 +08:00
bb17c3214c Merge branch 'main' of http://10.10.14.176:3000/huanghai/YunNanProject 2025-09-11 14:48:36 +08:00
0d2a8cde19 'commit' 2025-09-11 14:48:36 +08:00
c535201e77 'commit' 2025-09-11 14:48:00 +08:00
df5b4c531f 'commit' 2025-09-11 14:44:51 +08:00
6112cc1813 'commit' 2025-09-11 14:44:45 +08:00
cc11287e57 Merge branch 'main' of http://10.10.14.176:3000/huanghai/YunNanProject 2025-09-11 14:36:40 +08:00
192959357e 'commit' 2025-09-11 14:36:40 +08:00
f34bc8a9ae 'commit' 2025-09-11 14:35:34 +08:00
6d9ed6cb32 'commit' 2025-09-11 14:35:28 +08:00
9ab077ea3b Merge branch 'main' of http://10.10.14.176:3000/huanghai/YunNanProject 2025-09-11 14:34:32 +08:00
5dfc68fd47 'commit' 2025-09-11 14:34:32 +08:00
c161865599 'commit' 2025-09-11 14:33:52 +08:00
9935f7089c 'commit' 2025-09-11 14:32:53 +08:00
0a51def80f 'commit' 2025-09-11 14:32:15 +08:00
40a7a8fb7a 'commit' 2025-09-11 14:07:47 +08:00
b9ac29c759 'commit' 2025-09-11 13:52:20 +08:00
344 changed files with 26474 additions and 21522 deletions

View File

@@ -3,3 +3,22 @@ EXCEL_PATH = r'D:\dsWork\YunNanProject\Doc\数据库-2015-2024-v2.xlsx'
# Echarts的静态资源路径 # Echarts的静态资源路径
ONLINE_HOST = "https://gcore.jsdelivr.net/npm/echarts@6.0.0/dist/" ONLINE_HOST = "https://gcore.jsdelivr.net/npm/echarts@6.0.0/dist/"
# DeepSeek大模型 【DeepSeek深度求索官方】训练时用这个
LLM_API_KEY = "sk-44ae895eeb614aa1a9c6460579e322f1"
LLM_BASE_URL = "https://api.deepseek.com"
LLM_MODEL_NAME = "deepseek-chat"
# LLM_MODEL_NAME = "deepseek-reasoner"
# 嵌入向量模型
EMBED_MODEL_NAME = "BAAI/bge-m3"
EMBED_API_KEY = "sk-pbqibyjwhrgmnlsmdygplahextfaclgnedetybccknxojlyl"
EMBED_BASE_URL = "https://api.siliconflow.cn/v1"
EMBED_DIM = 1024
EMBED_MAX_TOKEN_SIZE = 8192
# 重排模型
RERANK_MODEL = 'BAAI/bge-reranker-v2-m3'
RERANK_BASE_URL = 'https://api.siliconflow.cn/v1/rerank'
RERANK_BINDING_API_KEY = 'sk-pbqibyjwhrgmnlsmdygplahextfaclgnedetybccknxojlyl'

View File

@@ -0,0 +1,67 @@
from fastapi import APIRouter, Query
from Model.EducationDataModel import EducationDataModel
# 创建APIRouter实例
router = APIRouter(prefix="/EducationData", tags=["教育统计数据"])
@router.get("/byYear")
async def get_education_data_by_year(
year: int = Query(default=2023, ge=2015, le=2028,
description="年份: 2015-2028范围内的年份")
):
"""获取指定年份所有学段的教育数据"""
try:
# 调用EducationDataModel的方法获取数据
data = EducationDataModel.get_education_data_by_year(year)
# 返回包含状态和数据的响应
return {
"code": 200,
"message": "success",
"data": data
}
except Exception as e:
# 异常处理
return {
"code": 500,
"message": f"获取数据失败: {str(e)}",
"data": []
}
@router.get("/populationByYear")
async def get_population_data_by_year(
year: int = Query(default=2023, ge=2015, le=2028,
description="年份: 2015-2028范围内的年份")
):
"""获取指定年份的云南省人口数据"""
try:
# 调用EducationDataModel的方法获取人口数据
data = EducationDataModel.get_population_data_by_year(year)
if data:
# 返回包含状态和数据的响应
return {
"code": 200,
"message": "success",
"data": data
}
else:
# 未找到数据的情况
return {
"code": 404,
"message": f"未找到{year}年的云南省人口数据",
"data": None
}
except Exception as e:
# 异常处理
return {
"code": 500,
"message": f"获取数据失败: {str(e)}",
"data": None
}

View File

@@ -1,20 +1,26 @@
from fastapi import APIRouter from fastapi import APIRouter, Query
from Model.RuYuanZaiYuanCountModel import RuYuanZaiYuanModel from Model.RuYuanZaiYuanCountModel import RuYuanZaiYuanModel
# 创建APIRouter实例 # 创建APIRouter实例
router = APIRouter(prefix="/RuYuanZaiYuan", tags=["大屏展示"]) router = APIRouter(prefix="/RuYuanZaiYuan", tags=["入校、在校人数统计"])
# 默认的根路由
@router.get("/")
async def root():
return {"message": "Welcome to YunNan Education World!"}
@router.get("/school/preschool/chart") @router.get("/school/chart")
async def get_preschool_education_chart_config(): async def get_education_chart_config(
return RuYuanZaiYuanModel.generate_preschool_education_config() education_stage: str = Query(default="preschool", pattern="^(preschool|primary|junior|senior|vocational)$",
description="教育阶段: preschool(学前), primary(小学), junior(初中), senior(高中), vocational(中职)"),
area_name: str = Query(default="云南省", description="区域名称,默认为云南省")
):
return RuYuanZaiYuanModel.generate_preschool_education_config(education_stage, area_name)
@router.get("/school/inschool/chart")
async def get_in_school_chart_config(
education_stage: str = Query(default="preschool", pattern="^(preschool|primary|junior|senior|vocational)$",
description="教育阶段: preschool(学前), primary(小学), junior(初中), senior(高中), vocational(中职)"),
area_name: str = Query(default="云南省", description="区域名称,默认为云南省")
):
return RuYuanZaiYuanModel.generate_in_school_education_config(education_stage, area_name)
@router.get("/school/preschool/inschool/chart")
async def get_preschool_in_school_chart_config():
return RuYuanZaiYuanModel.generate_in_school_education_config()

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More