李昊 4 years ago
parent
commit
b88f752c8c

+ 3 - 2
gx_api/GxPress/Api/GxPress.Api/AppControllers/UserController.cs

@@ -15,6 +15,7 @@ using GxPress.EnumConst;
 using GxPress.Repository.Interface;
 using GxPress.Request.App.User;
 using GxPress.Request.User;
+using GxPress.Request.UserMiddle;
 using GxPress.Result.App.FileLibrary;
 using GxPress.Result.App.User;
 using GxPress.Result.User;
@@ -413,9 +414,9 @@ namespace GxPress.Api.AppControllers
         /// <param name="userMiddles">来源类型 1:通知收件人 2:通知抄送人 3:站内信收集人 4:站内信抄送人 5:话题  6:笔记共享文件夹 7:收藏共享文件夹 </param>
         /// <returns></returns>
         [HttpPost("user-middle")]
-        public async Task<List<Entity.User>> FindUsersAsync(List<Request.UserMiddle.UserMiddleInRequest> userMiddles)
+        public async Task<List<Entity.User>> FindUsersAsync(UserMiddles userMiddles)
         {
-            return await userMiddleService.FindUsersAsync(userMiddles,_loginContext.AccountId);
+            return await userMiddleService.FindUsersAsync(userMiddles.Item,_loginContext.AccountId);
         }
     }
 }

+ 10 - 1
gx_api/GxPress/Model/GxPress.Request/UserMiddle/UserMiddleInRequest.cs

@@ -1,6 +1,15 @@
+using System.Collections.Generic;
+
 namespace GxPress.Request.UserMiddle
 {
     /// <summary>
+    /// 
+    /// </summary>
+    public class UserMiddles
+    {
+        public List<UserMiddleInRequest> Item { get; set; }
+    }
+    /// <summary>
     /// 用户中间表
     /// </summary>
     public class UserMiddleInRequest
@@ -30,7 +39,7 @@ namespace GxPress.Request.UserMiddle
         /// </summary>
         /// <value></value>
         public int DataSourceId { get; set; }
-          /// <summary>
+        /// <summary>
         /// 对应来源ID 1 我的小组 2群聊
         /// </summary>
         /// <value></value>