コード例 #1
0
ファイル: user_center.py プロジェクト: LichuanLu/redberry
def getPatients(doctorId):
    patients = Diagnose.getPatientListByDoctorId(doctorId)
    patientsDict = object2dict.objects2dicts(patients)
    resultStatus = rs.ResultStatus(rs.SUCCESS.status, rs.SUCCESS.msg,
                                   patientsDict)
    resultDict = resultStatus.__dict__
    return json.dumps(resultDict, ensure_ascii=False)
コード例 #2
0
ファイル: user_center.py プロジェクト: LichuanLu/blueberry
def getPatients(doctorId):
     patients=Diagnose.getPatientListByDoctorId(doctorId)
     patientsDict=object2dict.objects2dicts(patients)
     resultStatus=rs.ResultStatus(rs.SUCCESS.status,rs.SUCCESS.msg,patientsDict)
     resultDict=resultStatus.__dict__
     return json.dumps(resultDict,ensure_ascii=False)