Skip to content

Commit

Permalink
2024年12月03日 首页免登录认证
Browse files Browse the repository at this point in the history
  • Loading branch information
ss1917 committed Dec 3, 2024
1 parent 7cb0a9e commit d7b0e8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mg/handlers/sys_index_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down
4 changes: 2 additions & 2 deletions services/index_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit d7b0e8b

Please sign in to comment.