mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-09 10:57:03 +08:00
refactor: 抽离 AI pipeline 与调度共享能力逻辑
This commit is contained in:
@@ -97,7 +97,7 @@ pub(in super::super) async fn build_admin_wallet_adjust_response(
|
||||
transaction.link_id.as_deref(),
|
||||
transaction.operator_id.as_deref(),
|
||||
transaction.description.as_deref(),
|
||||
unix_secs_to_rfc3339(transaction.created_at_unix_secs),
|
||||
unix_secs_to_rfc3339(transaction.created_at_unix_ms),
|
||||
);
|
||||
let response = Json(json!({
|
||||
"wallet": wallet_payload,
|
||||
|
||||
@@ -84,7 +84,7 @@ pub(in super::super) async fn build_admin_wallet_fail_refund_response(
|
||||
transaction.link_id.as_deref(),
|
||||
transaction.operator_id.as_deref(),
|
||||
transaction.description.as_deref(),
|
||||
unix_secs_to_rfc3339(transaction.created_at_unix_secs),
|
||||
unix_secs_to_rfc3339(transaction.created_at_unix_ms),
|
||||
)
|
||||
})
|
||||
.unwrap_or(serde_json::Value::Null),
|
||||
|
||||
@@ -69,7 +69,7 @@ pub(in super::super) async fn build_admin_wallet_process_refund_response(
|
||||
transaction.link_id.as_deref(),
|
||||
transaction.operator_id.as_deref(),
|
||||
transaction.description.as_deref(),
|
||||
unix_secs_to_rfc3339(transaction.created_at_unix_secs),
|
||||
unix_secs_to_rfc3339(transaction.created_at_unix_ms),
|
||||
),
|
||||
}))
|
||||
.into_response();
|
||||
|
||||
@@ -87,7 +87,7 @@ pub(in super::super) async fn build_admin_wallet_recharge_response(
|
||||
payment_order.amount_usd,
|
||||
payment_order.payment_method,
|
||||
payment_order.status,
|
||||
unix_secs_to_rfc3339(payment_order.created_at_unix_secs),
|
||||
unix_secs_to_rfc3339(payment_order.created_at_unix_ms),
|
||||
payment_order
|
||||
.credited_at_unix_secs
|
||||
.and_then(unix_secs_to_rfc3339),
|
||||
|
||||
Reference in New Issue
Block a user