docs(api): fix some abnormal response templete in API docs
This commit is contained in:
+2
-1
@@ -44,4 +44,5 @@ go.work.sum
|
||||
agent.md
|
||||
super-frpc
|
||||
super-frpc.exe
|
||||
*.db
|
||||
*.db
|
||||
database.db
|
||||
|
||||
BIN
Binary file not shown.
+23
-21
@@ -297,16 +297,18 @@ X-Timestamp: 1704067200000
|
||||
"message": "User list retrieved successfully",
|
||||
"data": [
|
||||
{
|
||||
"userID": 1,
|
||||
"username": "admin",
|
||||
"type": "superuser",
|
||||
"createdAt": "2024-01-01 12:00:00"
|
||||
"UserID": 1,
|
||||
"Username": "admin",
|
||||
"Passwd": "",
|
||||
"Type": "superuser",
|
||||
"CreatedAt": "2024-01-01 12:00:00"
|
||||
},
|
||||
{
|
||||
"userID": 2,
|
||||
"username": "new_user",
|
||||
"type": "admin",
|
||||
"createdAt": "2024-01-02 14:30:00"
|
||||
"UserID": 2,
|
||||
"Username": "new_user",
|
||||
"Passwd": "",
|
||||
"Type": "admin",
|
||||
"CreatedAt": "2024-01-02 14:30:00"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -314,10 +316,10 @@ X-Timestamp: 1704067200000
|
||||
|
||||
| Field | Type | Description |
|
||||
|-------|------|-------------|
|
||||
| userID | int | User ID |
|
||||
| username | string | Username |
|
||||
| type | string | User type: superuser, admin, visitor |
|
||||
| createdAt | string | User creation time (YYYY-MM-DD HH:MM:SS format) |
|
||||
| UserID | int | User ID |
|
||||
| Username | string | Username |
|
||||
| Type | string | User type: superuser, admin, visitor |
|
||||
| CreatedAt | string | User creation time (YYYY-MM-DD HH:MM:SS format) |
|
||||
|
||||
---
|
||||
|
||||
@@ -347,15 +349,15 @@ X-Timestamp: 1704067200000
|
||||
"data": [
|
||||
{
|
||||
"ID": "session-5f4dcc3b5aa765d61d8327deb882cf99-1704067200000",
|
||||
"userID": 1,
|
||||
"username": "admin",
|
||||
"expireAt": "2024-01-01T01:00:00Z"
|
||||
"UserID": 1,
|
||||
"Username": "admin",
|
||||
"ExpireAt": "2024-01-01T01:00:00Z"
|
||||
},
|
||||
{
|
||||
"ID": "session-7c6a180b36896a0a8c010710c0780347-1704067210000",
|
||||
"userID": 2,
|
||||
"username": "new_user",
|
||||
"expireAt": "2024-01-01T01:00:10Z"
|
||||
"UserID": 2,
|
||||
"Username": "new_user",
|
||||
"ExpireAt": "2024-01-01T01:00:10Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -364,9 +366,9 @@ X-Timestamp: 1704067200000
|
||||
| Field | Type | Description |
|
||||
|-------|------|-------------|
|
||||
| ID | string | Unique session ID |
|
||||
| userID | int | User ID |
|
||||
| username | string | Username |
|
||||
| expireAt | string | Session expiration time (ISO 8601 format) |
|
||||
| UserID | int | User ID |
|
||||
| Username | string | Username |
|
||||
| ExpireAt | string | Session expiration time (ISO 8601 format) |
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user