XMLWAN 3 gadus atpakaļ
vecāks
revīzija
7da93ebccf

+ 5 - 4
controllers/xcx_mobile_api_controller.go/xcx_api_controller.go Parādīt failu

@@ -683,12 +683,13 @@ func (this *XcxApiController) GetFieldConfig() {
683 683
 }
684 684
 
685 685
 func (this *XcxApiController) GetDataConfig() {
686
-
686
+	var configList interface{}
687 687
 	patient_id, _ := this.GetInt64("patient_id")
688 688
 	fmt.Println("patient_id", patient_id)
689
-	info, _ := service.GetXcxPatientInfo(1)
690
-	list, _ := service.GetDataConfig(info.UserOrgId)
689
+	info, _ := service.GetXcxPatientInfo(patient_id)
690
+	//list, _ := service.GetDataConfig(info.UserOrgId)
691
+	configList, _ = service.GetConfigList(info.UserOrgId)
691 692
 	this.ServeSuccessJSON(map[string]interface{}{
692
-		"list": list,
693
+		"list": configList,
693 694
 	})
694 695
 }