Commit fa273294 authored by 金凯强's avatar 金凯强 🎨

get_app_list接口修改

parent ea1aca99
Pipeline #22213 failed with stage
in 11 seconds
......@@ -8,13 +8,13 @@ from app.info.info_service import InfoService
@api('info')
class InfoAPI(ApiController):
@api('app_list')
def get_app_list(self):
@api('app_list/<string:project_no>')
def get_app_list(self, project_no):
'''
获取app_list
:return:
'''
return InfoService().get_app_list()
return InfoService().get_app_list(project_no)
@api('app_upgrade')
def post_set_app_upgrade_info(self):
......
......@@ -21,8 +21,8 @@ docker_client = docker.APIClient(base_url='unix:///var/run/docker.sock')
class InfoService(HSBaseUCService):
def get_app_list(self):
project_info = ConnectionService().get_project_info()
def get_app_list(self, project_no):
project_info = ConnectionService().get_project_info(project_no)
if not project_info:
# raise HSException('请先设置项目信息')
return []
......@@ -57,8 +57,8 @@ class InfoService(HSBaseUCService):
page_data = {
"paging": {
"page": 1,
"per_page": 10,
"total": 10
"per_page": 100,
"total": 100
},
"table": app_info_list
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment