From 95798bbe8e398d3dd75926e18dfef2e14d1bc7cc Mon Sep 17 00:00:00 2001 From: zhengyuxuan <zhengyuxuan1995> Date: 星期一, 31 三月 2025 10:18:10 +0800 Subject: [PATCH] fix:流水分页数据返回结果更新 --- LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs b/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs index aec1d39..7bf8650 100644 --- a/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs +++ b/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs @@ -40,6 +40,8 @@ [HttpPost] public async Task<Guid> CreateBackClientUser(CreateBackClientUserInput input) { + + return await _accountService.CreateAccount(ObjectMapper.Map<CreateBackClientUserInput, CreateAccountInput>(input), isAdminCreate: true); } @@ -62,6 +64,11 @@ [HttpPost] public async Task<int> UpdateBackClientUser(UpdateBackClientUserInput input) { + + var identityUser = await _identityUserService.GetAsync(input.Id); + + CheckExtensions.IfTrueThrowUserFriendlyException(identityUser == null, + "鐢ㄦ埛涓嶅瓨鍦�"); await _identityUserService.UpdateAsync(input.Id, new IdentityUserUpdateDto { Name = input.Name, @@ -70,6 +77,19 @@ RoleNames = input.RoleNames, }); return await _userRoleService.UpdateBackClientUser(input); + } + + /// <summary> + /// 閲嶇疆瀵嗙爜 + /// </summary> + /// <param name="input"></param> + /// <returns></returns> + [HttpPost] + public virtual async Task<int> ResetUserPassword(ResetPasswordBaseInput input) + { + await _userRoleService.ResetPassword(input); + + return Constant.SUCCESS; } /// <summary> @@ -179,5 +199,11 @@ await _identityRoleService.DeleteAsync(id); return await _userRoleService.DeleteRole(id); } + + //[HttpGet] + //public async Task<UserChannelOutput> GetUserChannel() + //{ + // return await _accountService.GetUserChannel(); + //} } } \ No newline at end of file -- Gitblit v1.9.1