feat(user): add user modification API and handler

implement user modification functionality including:
- new endpoint /userMgr/modify
- database update function DBUpdateUser
- request/response structures
- handler with proper authentication and validation
- updated API documentation
- marked as completed in README checklist
This commit is contained in:
2026-03-31 21:52:15 +08:00
parent 4aa58b2f3d
commit f4d742de04
5 changed files with 106 additions and 8 deletions
+33
View File
@@ -277,6 +277,39 @@ X-Timestamp: 1704067200000
---
## Modify User
**Endpoint**: `/userMgr/modify`
**Method**: POST
**Content-Type**: application/json
**Auth Required**: Yes (token)
**Permission Level**: visitor
**Request Headers**:
```
X-Token: your_token
X-Timestamp: 1704067200000
```
**Request Body**:
```json
{
"userID": 1,
"username": "user123",
"passwd": "NewPass123!"
}
```
**Response**:
```json
{
"success": true,
"message": "User updated successfully"
}
```
---
## Modify User Type
**Endpoint**: `/userMgr/modifyType`