def all_end_orders(): res = pending_Orders.end_order_record_of(session.get("id")) return jsonlify(res) # @blueprint.route("apply_return_book", methods=["POST"]) # @require_login # def apply_to_return_book(): # id = request.json["id"] # log(id) # pending_Orders.apply_to_return_book(id) # return id
def all_begin_orders(): res = pending_Orders.begin_order_record_of(session.get("id")) return jsonlify(res)
def get_books_by_type(): type = request.json["type"] res = book_Type.get_books_of(type) return jsonlify(res)
def get_all_book_type(): res = book_Type.get_all() return jsonlify(res)
def get_all_book(): return jsonlify(Book.get_all_book())