示例#1
0
def delete_mscan_location_json(mscan_id, loc_id):
    s = MScanService(g.user)
    s.delete_location(mscan_id, loc_id)
    return jsonify(s.to_json(selected_id=mscan_id))
示例#2
0
def market_info_json(mscan_id):
    s = MScanService(g.user)
    s.market_info(mscan_id)
    return jsonify(s.to_json(selected_id=mscan_id))
示例#3
0
def update_mscan_json(mscan_id):
    s = MScanService(g.user)
    s.update_mscan(mscan_id, request.get_json())
    return jsonify(s.to_json(selected_id=mscan_id))
示例#4
0
def add_mscan_location_json(mscan_id):
    s = MScanService(g.user)
    s.add_location(mscan_id, request.get_json())
    return jsonify(s.to_json(selected_id=mscan_id))
示例#5
0
def mscan_json(mscan_id):
    s = MScanService(g.user)
    return jsonify(s.to_json(selected_id=mscan_id))
示例#6
0
def delete_mscan(mscan_id):
    s = MScanService(g.user)
    s.delete_scan(mscan_id)
    return jsonify(s.to_json())
示例#7
0
def rename_mscan(mscan_id):
    s = MScanService(g.user)
    s.rename_scan(mscan_id, request.get_json()['name'])
    return jsonify(s.to_json())
示例#8
0
def add_mscan():
    s = MScanService(g.user)
    new_id = s.add_scan(request.get_json()['name'])
    return jsonify(s.to_json(selected_id=new_id))
示例#9
0
def mscans_list():
    s = MScanService(g.user)
    return jsonify(s.to_json())