mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-10 19:29:50 +08:00
refactor: 抽离 AI pipeline 与调度共享能力逻辑
This commit is contained in:
@@ -69,7 +69,7 @@ pub(in super::super) async fn build_admin_wallet_ledger_response(
|
||||
"operator_name": entry.operator_name,
|
||||
"operator_email": entry.operator_email,
|
||||
"description": entry.description,
|
||||
"created_at": entry.created_at_unix_secs.and_then(unix_secs_to_rfc3339),
|
||||
"created_at": entry.created_at_unix_ms.and_then(unix_secs_to_rfc3339),
|
||||
})
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
@@ -59,7 +59,7 @@ pub(in super::super) async fn build_admin_wallet_list_response(
|
||||
"total_consumed": wallet.total_consumed,
|
||||
"total_refunded": wallet.total_refunded,
|
||||
"total_adjusted": wallet.total_adjusted,
|
||||
"created_at": wallet.created_at_unix_secs.and_then(unix_secs_to_rfc3339),
|
||||
"created_at": wallet.created_at_unix_ms.and_then(unix_secs_to_rfc3339),
|
||||
"updated_at": wallet.updated_at_unix_secs.and_then(unix_secs_to_rfc3339),
|
||||
})
|
||||
})
|
||||
|
||||
@@ -79,7 +79,7 @@ pub(in super::super) async fn build_admin_wallet_refund_requests_response(
|
||||
"requested_by": refund.requested_by,
|
||||
"approved_by": refund.approved_by,
|
||||
"processed_by": refund.processed_by,
|
||||
"created_at": refund.created_at_unix_secs.and_then(unix_secs_to_rfc3339),
|
||||
"created_at": refund.created_at_unix_ms.and_then(unix_secs_to_rfc3339),
|
||||
"updated_at": refund.updated_at_unix_secs.and_then(unix_secs_to_rfc3339),
|
||||
"processed_at": refund.processed_at_unix_secs.and_then(unix_secs_to_rfc3339),
|
||||
"completed_at": refund.completed_at_unix_secs.and_then(unix_secs_to_rfc3339),
|
||||
|
||||
@@ -80,7 +80,7 @@ pub(in super::super) async fn build_admin_wallet_transactions_response(
|
||||
"operator_name": operator_name,
|
||||
"operator_email": operator_email,
|
||||
"description": transaction.description,
|
||||
"created_at": transaction.created_at_unix_secs.and_then(unix_secs_to_rfc3339),
|
||||
"created_at": transaction.created_at_unix_ms.and_then(unix_secs_to_rfc3339),
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user