def get_courses(): r = get_downstream("/api/course") return jsonify(r.json()), r.status_code
def jscode2session(): """JScode to Session""" r = get_downstream("/api/wechat/jscode2session") return jsonify(r.json()), r.status_code
def get_course(course_id): r = get_downstream("/api/course/" + course_id) return jsonify(r.json()), r.status_code
def check_session(): """Check Session""" r = get_downstream("/api/wechat/check_session") return jsonify(r.json()), r.status_code
def get_wechat_user(): r = get_downstream("/api/wechat/user") return jsonify(r.json()), r.status_code
def get_remaining_view_contact_count(): r = get_downstream("/api/goods/post/viewcount") return jsonify(r.json()), r.status_code
def get_goods_post_list(): r = get_downstream("/api/goods/post") return jsonify(r.json()), r.status_code
def get_course_post_list(): r = get_downstream("/api/course/post") return jsonify(r.json()), r.status_code
def get_goods_post_by_id(goods_post_id): r = get_downstream("/api/goods/post/" + str(goods_post_id)) return jsonify(r.json()), r.status_code
def get_course_post_by_id(course_post_id): r = get_downstream("/api/course/post/" + str(course_post_id)) return jsonify(r.json()), r.status_code
def downstream_health(): r = get_downstream("/health") return jsonify(r.json()), r.status_code
def get_current_student(): r = get_downstream("/api/student") return jsonify(r.json()), r.status_code
def get_student_share_profile(student_id): r = get_downstream("/api/student/share/profile/" + str(student_id)) return jsonify(r.json()), r.status_code
def get_student_post_list_by_student_id(student_id): r = get_downstream("/api/student/" + str(student_id) + "/post") return jsonify(r.json()), r.status_code