Пример #1
0
def BookCoverRaw(recordId=None):
    if not recordId:
        BaseException.ParameterException('缺少参数: recordId')
    return HPULib.lib_book_cover(
        recordId,
        True
    )
Пример #2
0
def LibSession():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['ip']
    )
    return HPULib.lib_session(
        request.args['ip']
    )
Пример #3
0
def BookCollection():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['recordId', 'ip']
    )
    return HPULib.lib_book_collection(
        request.args['recordId'],
        request.args['ip']
    )
Пример #4
0
def BookDetail():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['recordId', 'ip']
    )
    return HPULib.lib_book_detail(
        request.args['recordId'],
        request.args['ip']
    )
Пример #5
0
def LibLoanList():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['session', 'ip']
    )
    return HPULib.lib_loan_list(
        request.args['session'],
        request.args['ip']
    )
Пример #6
0
def BookCover():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['recordId', 'ip']
    )
    return HPULib.lib_book_cover(
        request.args['recordId'],
        False,
        request.args['ip']
    )
Пример #7
0
def BookSimpleSearch():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['keyword', 'page', 'ip']
    )
    return HPULib.lib_simple_search(
        request.args['keyword'],
        request.args['page'],
        request.args['ip']
    )
Пример #8
0
def LibLogin():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['session', 'username', 'password', 'captcha', 'codeKey', 'ip']
    )
    return HPULib.lib_login(
        request.args['session'],
        request.args['username'],
        request.args['password'],
        request.args['captcha'],
        request.args['codeKey'],
        request.args['ip'],
    )