feat 更新响应模板
fix
This commit is contained in:
@@ -11,13 +11,12 @@ router = APIRouter()
|
|||||||
|
|
||||||
@router.get("{id}")
|
@router.get("{id}")
|
||||||
def test(id: int):
|
def test(id: int):
|
||||||
logger.info(SR_RABBITMQ_QUEUES)
|
|
||||||
logger.info("test")
|
|
||||||
data = {
|
data = {
|
||||||
"SR_RABBITMQ_QUEUES message": SR_RABBITMQ_QUEUES,
|
"SR_RABBITMQ_QUEUES message": SR_RABBITMQ_QUEUES,
|
||||||
"GI_RABBITMQ_QUEUES": GI_RABBITMQ_QUEUES,
|
"GI_RABBITMQ_QUEUES": GI_RABBITMQ_QUEUES,
|
||||||
"GPI_RABBITMQ_QUEUES": GPI_RABBITMQ_QUEUES,
|
"GPI_RABBITMQ_QUEUES": GPI_RABBITMQ_QUEUES,
|
||||||
}
|
}
|
||||||
|
logger.info(data)
|
||||||
if id == 1:
|
if id == 1:
|
||||||
raise HTTPException(status_code=404, detail="Item not found")
|
raise HTTPException(status_code=404, detail="Item not found")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user