|
@@ -2445,7 +2445,7 @@ func (this *NewDialysisApiController) SumitForm() {
|
2445
|
2445
|
fmt.Println("mobile", mobile)
|
2446
|
2446
|
address := this.GetString("address")
|
2447
|
2447
|
fmt.Println("address", address)
|
2448
|
|
- positon := this.GetString("position")
|
|
2448
|
+ positon, _ := this.GetInt64("position")
|
2449
|
2449
|
fmt.Println("职位", positon)
|
2450
|
2450
|
hospitalName := this.GetString("hospitalName")
|
2451
|
2451
|
fmt.Println("医院名称", hospitalName)
|
|
@@ -2502,9 +2502,24 @@ func (this *NewDialysisApiController) SumitForm() {
|
2502
|
2502
|
}
|
2503
|
2503
|
}
|
2504
|
2504
|
|
|
2505
|
+func (this *NewDialysisApiController) GetMobile() {
|
|
2506
|
+ fmt.Println("--------------触发了没有")
|
|
2507
|
+ adminInfo := this.GetMobileAdminUserInfo()
|
|
2508
|
+ id := adminInfo.AdminUser.Id
|
|
2509
|
+
|
|
2510
|
+ mobile, err := service.GetMobile(id)
|
|
2511
|
+ if err != nil {
|
|
2512
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
|
2513
|
+ return
|
|
2514
|
+ }
|
|
2515
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
2516
|
+ "mobile": mobile,
|
|
2517
|
+ })
|
|
2518
|
+}
|
|
2519
|
+
|
2505
|
2520
|
func (this *NewDialysisApiController) GetRolePosition() {
|
2506
|
2521
|
|
2507
|
|
- adminInfo := this.GetAdminUserInfo()
|
|
2522
|
+ adminInfo := this.GetMobileAdminUserInfo()
|
2508
|
2523
|
cretor := adminInfo.AdminUser.Id
|
2509
|
2524
|
cretorPosition, err := service.GetRolePosition(cretor)
|
2510
|
2525
|
fmt.Println("cretorPosition", cretorPosition.RoleName)
|