|
@@ -211,7 +211,7 @@ namespace GxPress.Api.AppControllers
|
|
public async Task<bool> Update([FromBody] UserInfoRequest request)
|
|
public async Task<bool> Update([FromBody] UserInfoRequest request)
|
|
{
|
|
{
|
|
var id = _loginContext.AccountId;
|
|
var id = _loginContext.AccountId;
|
|
- var result = await _userRepository.UpdateAsync(id, request);
|
|
|
|
|
|
+ var result = await _userService.UpdateAsync(id, request);
|
|
if (result == false)
|
|
if (result == false)
|
|
throw new BusinessException("更新失败");
|
|
throw new BusinessException("更新失败");
|
|
return true;
|
|
return true;
|
|
@@ -398,8 +398,9 @@ namespace GxPress.Api.AppControllers
|
|
/// 获取用户的通讯录
|
|
/// 获取用户的通讯录
|
|
/// </summary>
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
- [HttpGet("user-link")]
|
|
|
|
- public async Task<UserLinkResult> GetUserLinkResultAsync(){
|
|
|
|
|
|
+ [HttpGet("user-link")]
|
|
|
|
+ public async Task<UserLinkResult> GetUserLinkResultAsync()
|
|
|
|
+ {
|
|
return await _userService.GetUserLinkResultAsync(_loginContext.AccountId);
|
|
return await _userService.GetUserLinkResultAsync(_loginContext.AccountId);
|
|
}
|
|
}
|
|
}
|
|
}
|