예제 #1
0
def getPostionList():
    diagnoseMethod = request.args.get('diagnoseMethod')
    diagnosePositions = DiagnoseTemplate.getDiagnosePostion(diagnoseMethod)
    resultStatus = rs.ResultStatus(rs.SUCCESS.status, rs.SUCCESS.msg,
                                   diagnosePositions)
    resultDict = resultStatus.__dict__
    return json.dumps(resultDict, ensure_ascii=False)
예제 #2
0
def getDiagnoseAndImageDescList():
    diagnoseMethod=request.args.get('diagnoseMethod')
    diagnosePostion=request.args.get('diagnosePostion')
    if diagnosePostion:
        diagnosePostion+='\n'
    diagnoseAndImageDescs=DiagnoseTemplate.getDiagnoseAndImageDescs(diagnoseMethod,diagnosePostion)
    resultStatus=rs.ResultStatus(rs.SUCCESS.status,rs.SUCCESS.msg,diagnoseAndImageDescs)
    resultDict=resultStatus.__dict__
    return json.dumps(resultDict,ensure_ascii=False)
예제 #3
0
def getDiagnoseAndImageDescList():
    diagnoseMethod = request.args.get('diagnoseMethod')
    diagnosePostion = request.args.get('diagnosePostion')
    if diagnosePostion:
        diagnosePostion += '\n'
    diagnoseAndImageDescs = DiagnoseTemplate.getDiagnoseAndImageDescs(
        diagnoseMethod, diagnosePostion)
    resultStatus = rs.ResultStatus(rs.SUCCESS.status, rs.SUCCESS.msg,
                                   diagnoseAndImageDescs)
    resultDict = resultStatus.__dict__
    return json.dumps(resultDict, ensure_ascii=False)
예제 #4
0
def getPostionList():
    diagnoseMethod=request.args.get('diagnoseMethod')
    diagnosePositions=DiagnoseTemplate.getDiagnosePostion(diagnoseMethod)
    resultStatus=rs.ResultStatus(rs.SUCCESS.status,rs.SUCCESS.msg,diagnosePositions)
    resultDict=resultStatus.__dict__
    return json.dumps(resultDict,ensure_ascii=False)