update mq controller
This commit is contained in:
@@ -78,6 +78,49 @@ use OpenApi\Attributes as OA;
|
||||
new OA\Property(property: 'fetched_at', type: 'string', format: 'date-time', example: '2026-03-13 12:00:00', description: '数据获取时间'),
|
||||
]
|
||||
)]
|
||||
#[OA\Schema(
|
||||
schema: 'FailedMessageList',
|
||||
type: 'object',
|
||||
description: '失败消息列表项',
|
||||
properties: [
|
||||
new OA\Property(property: 'id', type: 'integer', example: 1),
|
||||
new OA\Property(property: 'error_id', type: 'string', example: 'err_67890abc'),
|
||||
new OA\Property(property: 'data_type', type: 'string', enum: ['order', 'product', 'refund'], example: 'order'),
|
||||
new OA\Property(property: 'platform', type: 'string', example: 'Tmall', nullable: true),
|
||||
new OA\Property(property: 'platform_id', type: 'integer', example: 1, nullable: true),
|
||||
new OA\Property(property: 'company_id', type: 'integer', example: 1, nullable: true),
|
||||
new OA\Property(property: 'store_id', type: 'integer', example: 1, nullable: true),
|
||||
new OA\Property(property: 'error_type', type: 'string', example: 'RuntimeException'),
|
||||
new OA\Property(property: 'error_message', type: 'string', example: 'Connection refused'),
|
||||
new OA\Property(property: 'retry_count', type: 'integer', example: 3),
|
||||
new OA\Property(property: 'message_id', type: 'string', example: 'msg_12345', nullable: true),
|
||||
new OA\Property(property: 'failed_at', type: 'string', format: 'date-time'),
|
||||
new OA\Property(property: 'created_at', type: 'string', format: 'date-time'),
|
||||
]
|
||||
)]
|
||||
#[OA\Schema(
|
||||
schema: 'FailedMessageDetail',
|
||||
type: 'object',
|
||||
description: '失败消息详情(含完整错误堆栈和原始消息体)',
|
||||
properties: [
|
||||
new OA\Property(property: 'id', type: 'integer', example: 1),
|
||||
new OA\Property(property: 'error_id', type: 'string', example: 'err_67890abc'),
|
||||
new OA\Property(property: 'data_type', type: 'string', enum: ['order', 'product', 'refund'], example: 'order'),
|
||||
new OA\Property(property: 'platform', type: 'string', example: 'Tmall', nullable: true),
|
||||
new OA\Property(property: 'platform_id', type: 'integer', example: 1, nullable: true),
|
||||
new OA\Property(property: 'company_id', type: 'integer', example: 1, nullable: true),
|
||||
new OA\Property(property: 'store_id', type: 'integer', example: 1, nullable: true),
|
||||
new OA\Property(property: 'error_type', type: 'string', example: 'RuntimeException'),
|
||||
new OA\Property(property: 'error_message', type: 'string', example: 'Connection refused'),
|
||||
new OA\Property(property: 'error_code', type: 'integer', example: 0),
|
||||
new OA\Property(property: 'error_trace', type: 'string', description: '完整异常堆栈'),
|
||||
new OA\Property(property: 'original_message', type: 'object', description: '原始消息体 JSON'),
|
||||
new OA\Property(property: 'retry_count', type: 'integer', example: 3),
|
||||
new OA\Property(property: 'message_id', type: 'string', example: 'msg_12345', nullable: true),
|
||||
new OA\Property(property: 'failed_at', type: 'string', format: 'date-time'),
|
||||
new OA\Property(property: 'created_at', type: 'string', format: 'date-time'),
|
||||
]
|
||||
)]
|
||||
class OpenApiSpec
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user