Browse Source

体积小

XMLWAN 3 years ago
parent
commit
7da93ebccf
1 changed files with 5 additions and 4 deletions
  1. 5 4
      controllers/xcx_mobile_api_controller.go/xcx_api_controller.go

+ 5 - 4
controllers/xcx_mobile_api_controller.go/xcx_api_controller.go View File

683
 }
683
 }
684
 
684
 
685
 func (this *XcxApiController) GetDataConfig() {
685
 func (this *XcxApiController) GetDataConfig() {
686
-
686
+	var configList interface{}
687
 	patient_id, _ := this.GetInt64("patient_id")
687
 	patient_id, _ := this.GetInt64("patient_id")
688
 	fmt.Println("patient_id", patient_id)
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
 	this.ServeSuccessJSON(map[string]interface{}{
692
 	this.ServeSuccessJSON(map[string]interface{}{
692
-		"list": list,
693
+		"list": configList,
693
 	})
694
 	})
694
 }
695
 }