From f8e21d7b31d7690e17f5980aeb5763036dda99f0 Mon Sep 17 00:00:00 2001 From: liushijie <lslola@126.com> Date: 星期四, 27 三月 2025 09:12:14 +0800 Subject: [PATCH] fix bug --- LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs b/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs index b1413ec..a0e2a9f 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); } @@ -73,12 +75,24 @@ PhoneNumber = input.PhoneNumber, UserName = input.UserName, RoleNames = input.RoleNames, - Password = input.Password, }); 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> /// 鍒犻櫎鍚庡彴绠$悊璐︽埛 /// </summary> /// <param name="id">鐢ㄦ埛Id</param> -- Gitblit v1.9.1