mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #5878] [CLOSED] refactor: M2.4 multi-interface refactoring for InboundService #6020
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6020
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/5878
Author: @SystemsNotSyntax
Created: 7/9/2026
Status: ❌ Closed
Base:
main← Head:m2.4-interface-refactoring📝 Commits (1)
c261ff9refactor: M2.4 multi-interface refactoring for InboundService📊 Changes
55 files changed (+1469 additions, -4528 deletions)
View changed files
📝
frontend/package-lock.json(+0 -30)📝
go.mod(+8 -0)📝
go.sum(+1 -0)📝
internal/database/dialect.go(+14 -0)📝
internal/database/model/model.go(+10 -10)📝
internal/web/runtime/local.go(+10 -0)📝
internal/web/runtime/runtime.go(+8 -1)➕
internal/web/service/batched_traffic.go(+172 -0)➕
internal/web/service/batched_traffic_test.go(+174 -0)📝
internal/web/service/client.go(+6 -9)📝
internal/web/service/client_bulk.go(+13 -13)📝
internal/web/service/client_bulk_reenable_test.go(+2 -2)📝
internal/web/service/client_crud.go(+12 -12)📝
internal/web/service/client_inbound_apply.go(+24 -24)📝
internal/web/service/client_lookup.go(+1 -1)📝
internal/web/service/client_paging.go(+1 -1)📝
internal/web/service/client_portable.go(+1 -1)📝
internal/web/service/client_traffic.go(+3 -3)📝
internal/web/service/global_traffic_test.go(+6 -6)📝
internal/web/service/inbound.go(+410 -669)...and 35 more files
📄 Description
Summary
This PR implements the M2.4 interface refactoring for the 3x-ui service layer, completing the multi-interface architecture for
InboundService.Changes
Core Architecture (M2.4)
InboundServiceInterfaceinto 7 granular interfaces:InboundCRUD- CRUD operationsInboundClients- Client managementInboundTraffic- Traffic accountingInboundStream- Stream operationsInboundXray- Xray config syncInboundNode- Node operationsInboundRuntime- Runtime layerOptimizations (M1-M4)
Fixes
New Files
internal/web/service/batched_traffic.go+ testinternal/web/service/inbound_interface.gointernal/database/dialect.go: Added ClientTrafficExpiryMergeExpr()Deleted Files
Testing
go build ./internal/web/service✅Breaking Changes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.