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)
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)
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)
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)