From 0846b628ebd2e657a7fb070df41569d38556a476 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 10 四月 2025 10:56:26 +0800
Subject: [PATCH] fix: ACOOLYNotify 回调状态修改

---
 LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs b/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs
index 48a0385..fd05e4d 100644
--- a/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs
+++ b/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs
@@ -1,7 +1,9 @@
 锘縰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;
@@ -128,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;
         }
@@ -202,13 +211,13 @@
         }
 
         /// <summary>
-        /// 鑾峰彇鐢ㄦ埛娓犻亾
+        /// 鑾峰彇鐢ㄦ埛璐﹀彿璇︽儏
         /// </summary>
         /// <returns></returns>
         [HttpGet]
-        public async Task<List<ChannelOutput>> GetUserChannel()
+        public async Task<BackClientUserInfoOutput> GetBackClientUserInfo()
         {
-            return await _accountService.GetUserChannel();
+            return await _accountService.GetBackClientUserInfo();
         }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1