李昊 4 years ago
parent
commit
c997f7c179

+ 1 - 1
gx_api/GxPress/Api/GxPress.Api/AppControllers/UserController.cs

@@ -394,7 +394,7 @@ namespace GxPress.Api.AppControllers
         {
             return await fileLibraryRepository.GetFileLibraryByUserIdAsync(_loginContext.AccountId);
         }
-          /// <summary>
+        /// <summary>
         /// 获取用户的通讯录
         /// </summary>
         /// <returns></returns>

+ 9 - 0
gx_api/GxPress/Api/GxPress.Api/WebControllers/UserController.cs

@@ -460,5 +460,14 @@ namespace GxPress.Api.WebControllers
             };
             return await _feedbackRepository.InsertAsync(feedback) > 0;
         }
+        /// <summary>
+        /// 获取用户的通讯录
+        /// </summary>
+        /// <returns></returns>
+        [HttpGet("user-link")]
+        public async Task<UserLinkResult> GetUserLinkResultAsync()
+        {
+            return await _userService.GetUserLinkResultAsync(_loginContext.AccountId);
+        }
     }
 }