完善退款审批材料与恢复流程
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 9m35s

This commit is contained in:
2026-09-20 17:59:52 +08:00
parent 4a6cec2730
commit b063617153
29 changed files with 1119 additions and 156 deletions

View File

@@ -5652,8 +5652,7 @@
],
"exit_status": 0
}
}
,
},
{
"capability": "asset-device",
"requirement": "单槽单卡设备绑定时初始化当前卡标识",
@@ -5741,5 +5740,45 @@
],
"exit_status": 0
}
},
{
"capability": "order-refund-exchange",
"requirement": "退款原审批实例可受控恢复",
"spec": "openspec/specs/order-refund-exchange/spec.md",
"entries": [
"POST /api/admin/refunds/{id}/recover-approval",
"GET /api/admin/refunds",
"GET /api/admin/refunds/{id}",
"constants.OutboxEventTypeApprovalManualSyncRequested",
"constants.OutboxEventTypeApprovalUnknownRecoveryRequested"
],
"handler_consumer_job": [
"internal/routes/refund.go",
"internal/handler/admin/refund.go",
"cmd/worker/main.go",
"internal/infrastructure/wecom/manual_sync_consumer.go",
"internal/infrastructure/wecom/unknown_recovery_consumer.go"
],
"application_service_query": [
"internal/application/refundapproval/recovery.go",
"internal/infrastructure/approval/recovery.go",
"internal/service/refund/service.go"
],
"domain_state_amount": [
"internal/model/refund.go",
"internal/model/wecom_approval_context.go",
"internal/model/approval_instance.go"
],
"store_migration_config": [
"internal/model/outbox_event.go",
"migrations/000189_add_wecom_approval_recovery_timestamps.up.sql"
],
"verification": {
"command": "gofmt -w internal/application/refundapproval/recovery.go internal/infrastructure/approval/recovery.go internal/infrastructure/wecom/manual_sync_consumer.go internal/infrastructure/wecom/unknown_recovery_consumer.go internal/service/refund/service.go cmd/worker/main.go && git diff --check && GOMODCACHE=/tmp/junhong-go-mod-cache GOCACHE=/tmp/junhong-go-build-cache go build ./cmd/api ./cmd/worker",
"literal_output": [
"gofmt completed; git diff --check completed; go build ./cmd/api ./cmd/worker completed"
],
"exit_status": 0
}
}
]