Exemple #1
0
def get_members():
    start, count = paginate()
    q = request.args.get('q', None)
    members = Member.get_paginate_models(start, count, q, err_msg='相关会员不存在')
    return jsonify(members)
Exemple #2
0
def get_paginate():
    start, count = paginate()
    q = request.args.get('q', None)
    models = Member.get_paginate_models(start, count, q, throw=True)
    return models