Show complete user credit data in admin
Load users by registration order, expose consumed and current credits, and accept short internal IDs so support can reliably locate accounts.
This commit is contained in:
+5
-2
@@ -549,7 +549,7 @@ paths:
|
||||
security:
|
||||
- adminMtls: []
|
||||
adminSession: []
|
||||
summary: List users or search by exact internal user ID
|
||||
summary: List users or search by full or 8-character internal user ID suffix
|
||||
parameters:
|
||||
- name: q
|
||||
in: query
|
||||
@@ -959,12 +959,13 @@ components:
|
||||
AdminUserSummary:
|
||||
type: object
|
||||
additionalProperties: false
|
||||
required: [userId, displayName, status, creditBalance, createdAt]
|
||||
required: [userId, displayName, status, creditBalance, consumedCredits, createdAt]
|
||||
properties:
|
||||
userId: { type: string, format: uuid }
|
||||
displayName: { type: string }
|
||||
status: { type: string, enum: [active, suspended, closed] }
|
||||
creditBalance: { type: integer, format: int64, minimum: 0 }
|
||||
consumedCredits: { type: integer, format: int64, minimum: 0 }
|
||||
createdAt: { type: string, format: date-time }
|
||||
AdminUserPage:
|
||||
type: object
|
||||
@@ -991,6 +992,7 @@ components:
|
||||
- displayName
|
||||
- status
|
||||
- creditBalance
|
||||
- consumedCredits
|
||||
- createdAt
|
||||
- qualifiedUsage
|
||||
- usage
|
||||
@@ -1000,6 +1002,7 @@ components:
|
||||
displayName: { type: string }
|
||||
status: { type: string, enum: [active, suspended, closed] }
|
||||
creditBalance: { type: integer, format: int64, minimum: 0 }
|
||||
consumedCredits: { type: integer, format: int64, minimum: 0 }
|
||||
createdAt: { type: string, format: date-time }
|
||||
lastActiveAt: { type: ["string", "null"], format: date-time }
|
||||
qualifiedUsage: { type: boolean }
|
||||
|
||||
Reference in New Issue
Block a user