mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-03 09:50:21 +08:00
refactor: 抽离 AI pipeline 与调度共享能力逻辑
This commit is contained in:
@@ -140,7 +140,7 @@ fn build_admin_gemini_file_mapping_payload(
|
||||
"username": username,
|
||||
"display_name": mapping.display_name,
|
||||
"mime_type": mapping.mime_type,
|
||||
"created_at": unix_secs_to_rfc3339(mapping.created_at_unix_secs),
|
||||
"created_at": unix_secs_to_rfc3339(mapping.created_at_unix_ms),
|
||||
"expires_at": unix_secs_to_rfc3339(mapping.expires_at_unix_secs),
|
||||
"is_expired": mapping.expires_at_unix_secs <= now_unix_secs,
|
||||
})
|
||||
|
||||
@@ -94,7 +94,7 @@ pub(super) fn build_admin_video_task_list_item(
|
||||
"error_message": task.error_message,
|
||||
"poll_count": task.poll_count,
|
||||
"max_poll_count": task.max_poll_count,
|
||||
"created_at": admin_video_task_timestamp(Some(task.created_at_unix_secs)),
|
||||
"created_at": admin_video_task_timestamp(Some(task.created_at_unix_ms)),
|
||||
"completed_at": admin_video_task_timestamp(task.completed_at_unix_secs),
|
||||
"submitted_at": admin_video_task_timestamp(task.submitted_at_unix_secs),
|
||||
})
|
||||
|
||||
@@ -272,7 +272,7 @@ pub(super) async fn maybe_build_local_admin_video_tasks_response(
|
||||
payload.insert("max_poll_count".to_string(), json!(task.max_poll_count));
|
||||
payload.insert(
|
||||
"created_at".to_string(),
|
||||
json!(admin_video_task_timestamp(Some(task.created_at_unix_secs))),
|
||||
json!(admin_video_task_timestamp(Some(task.created_at_unix_ms))),
|
||||
);
|
||||
payload.insert(
|
||||
"updated_at".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user