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 ...@@ -8,13 +8,13 @@ from app.info.info_service import InfoService
@api('info') @api('info')
class InfoAPI(ApiController): class InfoAPI(ApiController):
@api('app_list') @api('app_list/<string:project_no>')
def get_app_list(self): def get_app_list(self, project_no):
''' '''
获取app_list 获取app_list
:return: :return:
''' '''
return InfoService().get_app_list() return InfoService().get_app_list(project_no)
@api('app_upgrade') @api('app_upgrade')
def post_set_app_upgrade_info(self): def post_set_app_upgrade_info(self):
......
...@@ -21,8 +21,8 @@ docker_client = docker.APIClient(base_url='unix:///var/run/docker.sock') ...@@ -21,8 +21,8 @@ docker_client = docker.APIClient(base_url='unix:///var/run/docker.sock')
class InfoService(HSBaseUCService): class InfoService(HSBaseUCService):
def get_app_list(self): def get_app_list(self, project_no):
project_info = ConnectionService().get_project_info() project_info = ConnectionService().get_project_info(project_no)
if not project_info: if not project_info:
# raise HSException('请先设置项目信息') # raise HSException('请先设置项目信息')
return [] return []
...@@ -57,8 +57,8 @@ class InfoService(HSBaseUCService): ...@@ -57,8 +57,8 @@ class InfoService(HSBaseUCService):
page_data = { page_data = {
"paging": { "paging": {
"page": 1, "page": 1,
"per_page": 10, "per_page": 100,
"total": 10 "total": 100
}, },
"table": app_info_list "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