mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
Backend request/response structs used camelCase JSON tags while the rest of the codebase uses snake_case (from Ent ORM entities). This caused field name mismatches — notably the admin refund deduct_balance field was silently ignored. Backend: changed all camelCase JSON tags in payment handler/service structs to snake_case (CreateOrderRequest, CreateOrderResponse, CreatePlanRequest, UpdatePlanRequest, CreateProviderInstanceRequest, UpdateProviderInstanceRequest, AdminProcessRefundRequest, RefundResult). Frontend: updated all API call payloads and response field accesses to use snake_case, removed manual camelCase conversion in buildPlanPayload, toggleForSale, provider dialog emit, etc.