refactor: 重构HRBP公共层与业务模块,整理废弃资源

1.  迁移并统一HR会话、配置、API等公共能力至hrbp/common层,实现ehr/oa模块复用
2.  删除captcha_debug调试用图片资源与旧session_manager文件
3.  重构考勤异常处理模块,补充分级逻辑与导出优化
4.  新增OA/HR多套API封装模块与配套文档
5.  移除旧通用接口规划文档,补充完整需求与开发文档
This commit is contained in:
2026-08-14 15:48:15 +08:00
parent 3a8571d995
commit 831845f970
57 changed files with 4276 additions and 1905 deletions
+2 -15
View File
@@ -11,26 +11,13 @@
from typing import Any, Dict
from app.utils.logger import get_logger
from app.service.hrbp.common.config import VACATION_TYPE_MAP
logger = get_logger(__name__)
# ---------- 假期类型编码 -> 名称映射 ----------
VACATION_TYPE_MAP: Dict[str, str] = {
"04": "病假",
"05": "产假",
"09": "事假",
"11": "调休假",
"15": "普通事假",
"17": "特殊事假",
"18": "小时特假",
"19": "普通事假(晚/高峰)",
"20": "普通事假(早/中)",
"22": "半天休(仅限人资专用)",
"23": "特别福利假",
"24": "年度福利假",
}
# 已统一收口到 HR 平台共享层(hrbp/common/config.py),此处直接复用,不再重复定义
# ---------- 请假表单解析 ----------