From 1308cccd8dbb0392d7d706607532f97c1a2518c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A5=BF=E7=93=9C=C2=B0?= Date: Tue, 20 Jan 2026 17:25:00 +0800 Subject: [PATCH] dev --- backend/api/routes/colg.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/backend/api/routes/colg.py b/backend/api/routes/colg.py index 10cbdbcd..27c66c77 100644 --- a/backend/api/routes/colg.py +++ b/backend/api/routes/colg.py @@ -71,7 +71,17 @@ async def get_history_gold(region: Annotated[int, Query(..., description='跨区 获取历史金价数据 Args: - region (int): 跨区id,必填参数 + region (int): 跨区id,必填参数,跨区id对应的映射如下 + { + '跨1': 1, + '跨2': 2, + '跨3A': 3, + '跨3B': 4, + '跨4': 5, + '跨5': 6, + '跨6': 7, + '跨7': 8, + } timeRange (int, optional): 时间跨度天数,默认为7天 Returns: