From c914b457b2594cd8d1d9ccc0f2e56263ae7bbc04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E9=B8=BF=E5=AE=87?= Date: Fri, 21 Feb 2025 10:45:54 +0800 Subject: [PATCH] =?UTF-8?q?mock:=20=E5=A1=AB=E5=85=85=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E8=B0=83=E8=AF=95=E7=94=A8=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 史鸿宇 --- apps/manager/service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/manager/service.py b/apps/manager/service.py index 867600dd..101f8bdb 100644 --- a/apps/manager/service.py +++ b/apps/manager/service.py @@ -113,9 +113,9 @@ class ServiceCenterManager: _id=str(uuid.uuid4()), service_id=service_id, name=endpoint.name, - api_path=f"{endpoint.method} {endpoint.uri}", description=endpoint.description, call_id="api", + path="test path", ).model_dump(), ) yaml_hash = "hash" # TODO: 计算 OpenAPI YAML 文件的哈希值 @@ -162,9 +162,9 @@ class ServiceCenterManager: _id=str(uuid.uuid4()), service_id=service_id, name=endpoint.name, - api_path=f"{endpoint.method} {endpoint.uri}", description=endpoint.description, call_id="api", + path="test path", ).model_dump(), ) yaml_hash = "hash" # TODO: 计算 OpenAPI YAML 文件的哈希值 @@ -205,7 +205,7 @@ class ServiceCenterManager: api_list.extend( ServiceApiData( name=node.name, - path=node.api_path or "", + path="test path", description=node.description, ), ) -- Gitee