From fd5705a460cd8ef559afd33860e148bb16b8616d Mon Sep 17 00:00:00 2001 From: zhengyuxuan <zhengyuxuan1995> Date: 星期三, 26 三月 2025 15:18:35 +0800 Subject: [PATCH] fix;用户管理新增查询条件 --- 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