初步提交

This commit is contained in:
焦龙言
2026-06-18 13:21:20 +08:00
commit 99c7ba776f
133 changed files with 20680 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
{
"server": {
"host": "0.0.0.0",
"port": 8000,
"fallback_port": 8001
},
"logging": {
"dir": "logs",
"level": "INFO",
"info_file": "info.log",
"error_file": "error.log",
"max_bytes": 10485760,
"backup_count": 10,
"console_enabled": true
},
"database": {
"url": "mysql+pymysql://root:12345678@localhost:3306/financial_system?charset=utf8mb4"
},
"storage": {
"upload_dir": "uploads",
"output_dir": "outputs",
"avatar_dir": "static/uploads/avatars"
},
"dingtalk": {
"app_key": "",
"app_secret": "",
"base_url": "https://oapi.dingtalk.com",
"timezone": "Asia/Shanghai"
},
"auth": {
"secret_key": "financial-system-dev-secret",
"access_token_expire_minutes": 480
},
"bootstrap_superuser": {
"username": "admin",
"password": "Admin@123456",
"display_name": "超级管理员"
},
"cors": {
"allowed_origins": [
"http://127.0.0.1:5173",
"http://localhost:5173",
"http://127.0.0.1:5174",
"http://localhost:5174"
]
}
}
+36
View File
@@ -0,0 +1,36 @@
{
"attendance": {
"on_work_time": "08:30",
"off_work_time": "17:00",
"overtime_round_minutes": 60,
"standard_daily_hours": 8,
"minor_late_minutes": 5,
"minor_late_free_times": 3,
"late_penalty": 30,
"missing_card_penalty": 20,
"weekend_days": [5, 6],
"legal_holidays": ["2026-10-01", "2026-10-02"],
"leave_keywords": ["调休", "请假", "事假", "病假", "年假", "婚假", "产假", "陪产假", "丧假"]
},
"payroll": {
"default_overtime_rate": 0,
"default_weekend_overtime_rate": 0,
"default_holiday_overtime_rate": 0,
"employees": {
"张三": {
"salary_mode": "monthly",
"base_salary": 6000,
"hourly_rate": 0,
"piece_quantity": 0,
"piece_unit_price": 0,
"probation_type": "ratio",
"probation_ratio": 1,
"probation_salary": null,
"commission_amount": 500,
"overtime_rate": 25,
"weekend_overtime_rate": 35,
"holiday_overtime_rate": 50
}
}
}
}