示例#1
0
def get_courses():
    r = get_downstream("/api/course")
    return jsonify(r.json()), r.status_code
示例#2
0
def jscode2session():
    """JScode to Session"""
    r = get_downstream("/api/wechat/jscode2session")
    return jsonify(r.json()), r.status_code
示例#3
0
def get_course(course_id):
    r = get_downstream("/api/course/" + course_id)
    return jsonify(r.json()), r.status_code
示例#4
0
def check_session():
    """Check Session"""
    r = get_downstream("/api/wechat/check_session")
    return jsonify(r.json()), r.status_code
示例#5
0
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
示例#8
0
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
示例#10
0
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
示例#11
0
def downstream_health():
    r = get_downstream("/health")
    return jsonify(r.json()), r.status_code
示例#12
0
def get_current_student():
    r = get_downstream("/api/student")
    return jsonify(r.json()), r.status_code
示例#13
0
def get_student_share_profile(student_id):
    r = get_downstream("/api/student/share/profile/" + str(student_id))
    return jsonify(r.json()), r.status_code
示例#14
0
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