From b20d387d7d7c03afb75dac8b9f4c2a0238f5fcc2 Mon Sep 17 00:00:00 2001 From: zhengyuxuan <zhengyuxuan1995> Date: 星期五, 11 四月 2025 14:00:34 +0800 Subject: [PATCH] 提交 --- LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs | 28 +++++++++++++++++++++------- 1 files changed, 21 insertions(+), 7 deletions(-) diff --git a/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs b/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs index 7bf8650..fd05e4d 100644 --- a/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs +++ b/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs @@ -1,8 +1,11 @@ 锘縰sing LifePayment.Application.Contracts; using LifePayment.Domain.Shared; using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; +using Nest; using System; +using System.Collections.Generic; using System.Threading.Tasks; using Volo.Abp.AspNetCore.Mvc; using Volo.Abp.Identity; @@ -127,8 +130,15 @@ Sequence = input.Sequence, Note = input.Remark, }); - var newInput = ObjectMapper.Map<CreateBaseRoleInput, CreateOrUpdateRoleInput>(input); - newInput.Id = res.Id; + CreateOrUpdateRoleInput newInput = new CreateOrUpdateRoleInput() + { + Id = res.Id, + Name = input.Name, + Sequence = input.Sequence, + DepartmentId = input.DepartmentId, + DataRange = input.DataRange, + Remark = input.Remark, + }; await _userRoleService.CreateRole(newInput); return res.Id; } @@ -200,10 +210,14 @@ return await _userRoleService.DeleteRole(id); } - //[HttpGet] - //public async Task<UserChannelOutput> GetUserChannel() - //{ - // return await _accountService.GetUserChannel(); - //} + /// <summary> + /// 鑾峰彇鐢ㄦ埛璐﹀彿璇︽儏 + /// </summary> + /// <returns></returns> + [HttpGet] + public async Task<BackClientUserInfoOutput> GetBackClientUserInfo() + { + return await _accountService.GetBackClientUserInfo(); + } } } \ No newline at end of file -- Gitblit v1.9.1