修改表命名
This commit is contained in:
@@ -6,7 +6,6 @@ from flask import jsonify
|
||||
from pydantic import BaseModel, ValidationError, constr, parse_obj_as
|
||||
|
||||
from entrance.extend.orm import db
|
||||
from modules.sys.models.user import User, Userschema, Test
|
||||
|
||||
user = Blueprint('sys', __name__, url_prefix='/user')
|
||||
|
||||
@@ -14,6 +13,7 @@ user = Blueprint('sys', __name__, url_prefix='/user')
|
||||
@user.route('/')
|
||||
class UserView(View):
|
||||
def get(self):
|
||||
data, total = db.session.query(User.id, User.username).layui_paginate_json()
|
||||
print(data)
|
||||
return jsonify(data)
|
||||
pass
|
||||
# data, total = db.session.query(User.id, User.username).layui_paginate_json()
|
||||
# print(data)
|
||||
# return jsonify(data)
|
||||
|
||||
Reference in New Issue
Block a user