- 新增 llmusage_history 表:定时备份已记账(use_date<today)的历史记录 - 新增 llmusage_accounting_failed 表:记录记账失败详情,支持检索 - 新增 backup_accounted_llmusage() 函数:备份+清理历史数据 - 新增 get_failed_accounting_records() 函数:按条件检索失败记录 - 更新 llm_accoung_failed():同时写入失败表记录 - 新增 failed_accounting.ui 页面和 failed_accounting_list.dspy API - 新增 llmusage CRUD API (create/update/delete) - 新增表索引优化查询性能 - 更新 setup_llmage_perms.sh 添加新端点权限 - 生成生产迁移SQL: scripts/migrate_llmusage_history.sql
26 lines
895 B
JSON
26 lines
895 B
JSON
{
|
|
"tblname": "llmusage_accounting_failed",
|
|
"title": "记账失败记录",
|
|
"params": {
|
|
"sortby": "failed_time desc",
|
|
"browserfields": {
|
|
"exclouded": ["id"],
|
|
"alters": {
|
|
"handled": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "0", "text": "未处理"},
|
|
{"value": "1", "text": "已处理"}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"editexclouded": ["id", "llmusageid", "failed_time"],
|
|
"editable": {
|
|
"new_data_url": "{{entire_url('../api/llmusage_accounting_failed_create.dspy')}}",
|
|
"update_data_url": "{{entire_url('../api/llmusage_accounting_failed_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('../api/llmusage_accounting_failed_delete.dspy')}}"
|
|
}
|
|
}
|
|
}
|