-
Notifications
You must be signed in to change notification settings - Fork 23
chore: release v2.5.0 #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Greptile SummaryThis release adds bulk user management endpoints ( Key changes:
Critical Issue Found: Confidence Score: 2/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Client
participant Controller as HandlerController
participant Service as HandlerService
participant Internal as InternalService
participant XTLS as XtlsApi
rect rgb(240, 248, 255)
note right of Client: Bulk Add Users Flow
Client->>Controller: POST /handler/add-users
Controller->>Service: addUsers(data)
loop For each affectedInboundTag
Service->>Internal: addXtlsConfigInbound(tag)
end
loop For each user
loop For each existing inbound
Service->>XTLS: removeUser(tag, userId)
Service->>Internal: removeUserFromInbound(tag, hashUuid)
end
loop For each inboundData item
alt trojan type
Service->>XTLS: addTrojanUser(...)
XTLS-->>Service: response
Service->>Internal: addUserToInbound(tag, vlessUuid)
else vless type
Service->>XTLS: addVlessUser(...)
XTLS-->>Service: response
Service->>Internal: addUserToInbound(tag, vlessUuid)
else shadowsocks type
Service->>XTLS: addShadowsocksUser(...)
XTLS-->>Service: response
Service->>Internal: addUserToInbound(tag, vlessUuid)
end
end
end
Service-->>Controller: AddUserResponseModel
Controller-->>Client: response
end
rect rgb(255, 248, 240)
note right of Client: Bulk Remove Users Flow
Client->>Controller: POST /handler/remove-users
Controller->>Service: removeUsers(data)
Service->>Internal: getXtlsConfigInbounds()
Internal-->>Service: inboundTags
loop For each user
loop For each inbound tag
Service->>XTLS: removeUser(tag, userId)
XTLS-->>Service: response
Service->>Internal: removeUserFromInbound(tag, hashUuid)
end
end
Service-->>Controller: RemoveUserResponseModel
Controller-->>Client: response
end
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
18 files reviewed, 2 comments
No description provided.