Files
FastapiAdmin/backend/app/scripts/data/monitor_job.json
T
zhangtao 8cb93d31d1 fix(core): 修正 ID 自增和操作日志请求体参数处理
- 修改基础模型中主键ID的自增参数为 autoincrement=True,确保自增行为正确
- 优化操作日志路由中请求体解析逻辑,增加 JSON 解码异常处理,提升健壮性
- 分别使用 'body' 和 'path_params' 字段存储请求体和路径参数,避免参数冲突
- 调整.env.dev配置,切换数据库类型为 PostgreSQL,更新相关连接配置项
- 清理脚本数据 JSON 文件中的冗余 id 字段,保持数据格式简洁一致
2025-09-06 14:05:55 +08:00

54 lines
1.2 KiB
JSON

[
{
"name": "系统默认(无参)",
"func": "scheduler_test.job",
"trigger": "cron",
"args": null,
"kwargs": null,
"coalesce": false,
"max_instances": 1,
"jobstore": "default",
"executor": "default",
"trigger_args": "0 0 12 * * ?",
"start_date": null,
"end_date": null,
"status": false,
"description": null,
"creator_id": 1
},
{
"name": "系统默认(有参)",
"func": "scheduler_test.job",
"trigger": "cron",
"args": "test",
"kwargs": null,
"coalesce": false,
"max_instances": 1,
"jobstore": "default",
"executor": "default",
"trigger_args": "0 0 12 * * ?",
"start_date": null,
"end_date": null,
"status": false,
"description": null,
"creator_id": 1
},
{
"name": "系统默认(多参)",
"func": "scheduler_test.job",
"trigger": "cron",
"args": "new",
"kwargs": "{\"test\": 111}",
"coalesce": false,
"max_instances": 1,
"jobstore": "default",
"executor": "default",
"trigger_args": "0 0 12 * * ?",
"start_date": null,
"end_date": null,
"status": false,
"description": null,
"creator_id": 1
}
]