This commit is contained in:
Mr Chen
2024-11-11 22:18:32 +08:00
parent 89d6bbd317
commit 8f1396bb8b
2 changed files with 101 additions and 94 deletions
+12 -1
View File
@@ -32,7 +32,7 @@ import thisdb
def get_app_list():
limit = request.form.get('limit', '5').strip()
page = request.form.get('page', '1').strip()
tojs = request.form.get('tojs', '').strip()
tojs = request.form.get('tojs', 'getAppList').strip()
info = thisdb.getAppList(page=int(page),size=int(limit))
data = {}
@@ -53,3 +53,14 @@ def add_app():
if rid > 0:
return mw.returnData(True, '添加成功!')
return mw.returnData(False, '添加失败!')
# 获取APP列表
@blueprint.route('/delete_app', endpoint='delete_app', methods=['POST'])
@panel_login_required
def delete_app():
aid = request.form.get('id', '').strip()
rid = thisdb.deleteAppById(aid)
if rid > 0:
return mw.returnData(True, '删除成功!')
return mw.returnData(False, '删除失败!')