impl fix for user role

This commit is contained in:
2026-03-19 09:13:20 +08:00
parent 770f26afb1
commit e4fd8ca380
3 changed files with 14 additions and 1 deletions
+9
View File
@@ -35,6 +35,15 @@ use Qbhy\HyperfAuth\Authenticatable;
new OA\Property(property: 'role_id', type: 'integer', nullable: true, example: 1),
new OA\Property(property: 'api_key_enabled', type: 'boolean', example: false),
new OA\Property(property: 'ext', type: 'object', nullable: true, example: ['nickname' => 'user']),
new OA\Property(
property: 'role',
type: 'object',
nullable: true,
properties: [
new OA\Property(property: 'id', type: 'integer', example: 1),
new OA\Property(property: 'name', type: 'string', example: 'administrator'),
]
),
new OA\Property(property: 'refresh_token_expires_at', type: 'string', format: 'date-time', nullable: true),
new OA\Property(property: 'created_at', type: 'string', format: 'date-time'),
new OA\Property(property: 'updated_at', type: 'string', format: 'date-time'),