update api key manage
This commit is contained in:
@@ -396,6 +396,7 @@ class AuthController extends AbstractController
|
||||
new OA\Property(property: 'username', type: 'string', example: 'admin'),
|
||||
new OA\Property(property: 'email', type: 'string', example: 'admin@example.com'),
|
||||
new OA\Property(property: 'status', type: 'integer', example: 1),
|
||||
new OA\Property(property: 'api_key_enabled', type: 'boolean', example: true, description: 'API Key 功能是否启用'),
|
||||
new OA\Property(property: 'ext', type: 'object', nullable: true),
|
||||
new OA\Property(property: 'created_at', type: 'string', format: 'date-time'),
|
||||
], type: 'object'),
|
||||
@@ -428,6 +429,7 @@ class AuthController extends AbstractController
|
||||
'email' => $user->email,
|
||||
'role' => $user->role?->name ?? 'accessor',
|
||||
'status' => $user->status,
|
||||
'api_key_enabled' => $user->api_key_enabled,
|
||||
'ext' => $user->ext,
|
||||
'created_at' => $user->created_at->toDateTimeString(),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user