From 95fe2c54a45fae507247eb92c8f60af9c892159f Mon Sep 17 00:00:00 2001
From: zhengyuxuan <zhengyuxuan1995>
Date: 星期三, 02 四月 2025 11:01:00 +0800
Subject: [PATCH] fix:bug修复
---
LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs | 27 ++++++++++++++++++++++++++-
1 files changed, 26 insertions(+), 1 deletions(-)
diff --git a/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs b/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs
index b1413ec..2be205b 100644
--- a/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs
+++ b/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs
@@ -3,6 +3,7 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
+using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.Identity;
@@ -40,6 +41,8 @@
[HttpPost]
public async Task<Guid> CreateBackClientUser(CreateBackClientUserInput input)
{
+
+
return await _accountService.CreateAccount(ObjectMapper.Map<CreateBackClientUserInput, CreateAccountInput>(input), isAdminCreate: true);
}
@@ -73,9 +76,21 @@
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>
@@ -185,5 +200,15 @@
await _identityRoleService.DeleteAsync(id);
return await _userRoleService.DeleteRole(id);
}
+
+ /// <summary>
+ /// 鑾峰彇鐢ㄦ埛璐﹀彿璇︽儏
+ /// </summary>
+ /// <returns></returns>
+ [HttpGet]
+ public async Task<BackClientUserInfoOutput> GetBackClientUserInfo()
+ {
+ return await _accountService.GetBackClientUserInfo();
+ }
}
}
\ No newline at end of file
--
Gitblit v1.9.1