Browse Source

搜索接口更新

XMLWAN 5 years ago
parent
commit
eb0a666248

+ 14 - 0
controllers/new_mobile_api_controllers/new_dialysis_api_controller.go View File

@@ -1454,3 +1454,17 @@ func (this *NewDialysisApiController) GetInspection() {
1454 1454
 		"total":      total,
1455 1455
 	})
1456 1456
 }
1457
+
1458
+func (this *NewDialysisApiController) GetMyInformation() {
1459
+	adminUserInfo := this.GetMobileAdminUserInfo()
1460
+
1461
+	roleInfo := adminUserInfo.AppRole
1462
+
1463
+	es, _ := service.GetAdminUserElectronicSignature(adminUserInfo.Org.Id, adminUserInfo.App.Id, adminUserInfo.AdminUser.Id)
1464
+
1465
+	this.ServeSuccessJSON(map[string]interface{}{
1466
+		"electronic_signature": es,
1467
+		"roleInfo":             roleInfo,
1468
+	})
1469
+	return
1470
+}

+ 1 - 1
controllers/new_mobile_api_controllers/new_mobile_api_router_register.go View File

@@ -81,5 +81,5 @@ func NewMobileAPIControllersRegisterRouters() {
81 81
 	beego.Router("/m/api/patient/getalldoctor", &NewDialysisApiController{}, "Get:GetAllDoctor")
82 82
 	beego.Router("/m/api/patient/getallinspection", &NewDialysisApiController{}, "Get:GetAllInspection")
83 83
 	beego.Router("/m/api/patient/getinspection", &NewDialysisApiController{}, "Get:GetInspection")
84
-
84
+	beego.Router("/m/api/patient/getmyinformation", &NewDialysisApiController{}, "Get:GetMyInformation")
85 85
 }