Commit 73a89424 authored by 金凯强's avatar 金凯强 🎨

受黄总压迫增加分页

parent 118f03b8
......@@ -52,7 +52,16 @@ class InfoService(HSBaseUCService):
app_info['creat_time'] = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(container['Created']))
app_info_list.append(app_info)
return app_info_list
page_data = {
"paging": {
"page": 1,
"per_page": 10,
"total": 1000000000000000000000000000000000
},
"table": app_info_list
}
return page_data
def set_upgrade_info(self, app_list):
'''
......@@ -138,7 +147,16 @@ order by A.default_version desc, A.upgrade_time desc
with db_driver as session:
data = session.query_sql(sql)
return data
page_data = {
"paging": {
"page": 1,
"per_page": 10,
"total": 1000000000000000000000000000000000
},
"table": data
}
return page_data
def get_upgrade_log_dtl(self, log_id):
'''
......@@ -153,4 +171,13 @@ where A.log_id={log_id}
with db_driver as session:
data = session.query_sql(sql)
return data
page_data = {
"paging": {
"page": 1,
"per_page": 10,
"total": 1000000000000000000000000000000000
},
"table": data
}
return page_data
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