mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #3254] [CLOSED] Endpoint for updating client traffic by email #5373
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#5373
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/3254
Author: @azavaxhuman
Created: 7/19/2025
Status: ❌ Closed
Base:
main← Head:main📝 Commits (10+)
2383049api testce11fe3Update inbound.go856ec00Create workflowscom_release.yaml5183ea7Rename workflowscom_release.yaml to comp_release.yamlc825787Delete .github/comp_release.yaml937281eCreate comp_4x.ymlfc2c752Update comp_4x.yml081cd64Update comp_4x.yml811a41dchange 3 to 40821b5dMerge branch 'main' of https://github.com/azavaxhuman/4x-ui📊 Changes
7 files changed (+255 additions, -13 deletions)
View changed files
➕
.github/workflows/comp_4x.yml(+201 -0)📝
README.md(+1 -1)📝
install.sh(+4 -4)📝
web/controller/api.go(+2 -1)📝
web/controller/inbound.go(+25 -0)📝
web/service/inbound.go(+15 -0)📝
x-ui.sh(+7 -7)📄 Description
Pull Request Description
What is the pull request?
This pull request introduces a new API endpoint /panel/api/inbounds/updateClientTraffic/:email to update the upload and download traffic for a client based on their email address in the 3X-UI project. The endpoint accepts a POST request with a JSON body containing upload and download values (64-bit integers) and updates the corresponding ClientTraffic record in the database. The implementation follows the existing patterns in the codebase, including authentication via checkLogin middleware, proper error handling, and consistent response formatting using jsonMsg.
Which part of the application is affected by the change?
Frontend
Backend
Type of Changes
New feature
Bug fix
Refactoring
Other
Screenshots
Not applicable, as this is a backend API change with no frontend modifications.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.