public async Task <MessageModel <string> > ChangePassword([FromBody] ChangePwdVO changePwd) { var data = new MessageModel <string>(); try { if (changePwd.UserId == Guid.Empty) { changePwd.UserId = UserId.Value; } data.success = await _userserver.ChangePwd(changePwd); if (data.success) { data.msg = "密码修改成功"; } else { data.msg = "密码修改失败"; } return(data); } catch (Exception ex) { data.msg = ex.Message; return(data); } }