def BookCoverRaw(recordId=None): if not recordId: BaseException.ParameterException('缺少参数: recordId') return HPULib.lib_book_cover( recordId, True )
def LibSession(): BaseValidate.paramsExist( request.args.to_dict(), ['ip'] ) return HPULib.lib_session( request.args['ip'] )
def BookCollection(): BaseValidate.paramsExist( request.args.to_dict(), ['recordId', 'ip'] ) return HPULib.lib_book_collection( request.args['recordId'], request.args['ip'] )
def BookDetail(): BaseValidate.paramsExist( request.args.to_dict(), ['recordId', 'ip'] ) return HPULib.lib_book_detail( request.args['recordId'], request.args['ip'] )
def LibLoanList(): BaseValidate.paramsExist( request.args.to_dict(), ['session', 'ip'] ) return HPULib.lib_loan_list( request.args['session'], request.args['ip'] )
def BookCover(): BaseValidate.paramsExist( request.args.to_dict(), ['recordId', 'ip'] ) return HPULib.lib_book_cover( request.args['recordId'], False, request.args['ip'] )
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'] )
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'], )