添加总页数

duizhaopin
apan 2 years ago
parent 76a64c586c
commit e0127fd00f

@ -98,7 +98,7 @@ def get_power_list():
page_param = PageParam(page, page_size)
data_list = BllModuleRelation().get_role_module(page_param)
return jsonify(Utils.true_return(data=Utils.msyql_table_model(data_list)))
return jsonify(Utils.true_return(data={"total_count": page_param.totalRecords, "data_list": Utils.msyql_table_model(data_list)}))
# 通过角色id查询角色列表
@power_router.route("/get_role_module", methods=["GET", "POST"])

Loading…
Cancel
Save