From d7b0e8b156a2863eda7cdbe9e766ca96394c3b1a Mon Sep 17 00:00:00 2001 From: shenshuo <191715030@qq.com> Date: Tue, 3 Dec 2024 14:32:40 +0800 Subject: [PATCH] =?UTF-8?q?2024=E5=B9=B412=E6=9C=8803=E6=97=A5=20=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E5=85=8D=E7=99=BB=E5=BD=95=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mg/handlers/sys_index_handler.py | 4 ++-- services/index_service.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mg/handlers/sys_index_handler.py b/mg/handlers/sys_index_handler.py index 73abdd9..95ea7dd 100644 --- a/mg/handlers/sys_index_handler.py +++ b/mg/handlers/sys_index_handler.py @@ -71,8 +71,8 @@ def get(self, *args, **kwargs): index_step_urls = [ (r"/v4/ops-step-service/", IndexStepHandler, {"handle_name": "PAAS-基础功能-首页步骤管理", "method": ["ALL"]}), (r"/v4/ops-index-service/", IndexServiceHandler, {"handle_name": "PAAS-基础功能-首页服务管理", "method": ["ALL"]}), - (r"/v4/index-step/", IndexStep, {"handle_name": "PAAS-基础功能-首页步骤", "method": ["GET"]}), - (r"/v4/index-service/", IndexService, {"handle_name": "PAAS-基础功能-首页服务", "method": ["GET"]}) + (r"/v4/na/index-step/", IndexStep, {"handle_name": "PAAS-基础功能-首页步骤", "method": ["GET"]}), + (r"/v4/na/index-service/", IndexService, {"handle_name": "PAAS-基础功能-首页服务", "method": ["GET"]}) ] if __name__ == "__main__": diff --git a/services/index_service.py b/services/index_service.py index 2324f6a..a7b8626 100644 --- a/services/index_service.py +++ b/services/index_service.py @@ -24,7 +24,7 @@ def get_step_list() -> dict: with DBContext('r') as session: queryset = queryset_to_list(session.query(IndexStepModel).all()) - return dict(code=0, msg="创建成功", data=queryset) + return dict(code=0, msg="查看成功", data=queryset) def add_step(data: dict): @@ -111,7 +111,7 @@ def get_service_dict() -> dict: } }) - return dict(code=0, data=formatted_result) + return dict(code=0, msg="查看成功", data=formatted_result) def _get_value(value: str = None):