李昊 %!s(int64=4) %!d(string=hai) anos
pai
achega
01e1296407

+ 11 - 1
gx_api/GxPress/Api/GxPress.Api/WebControllers/WebGroupController.cs

@@ -104,7 +104,17 @@ namespace GxPress.Api.WebControllers
         {
             return await _groupService.DeleteAsync(request);
         }
-
+        /// <summary>
+        ///  添加小组成员
+        /// </summary>
+        /// <param name="request"></param>
+        /// <returns></returns>
+        [HttpPost("insert-user")]
+        public async Task<bool> AddGroupUser(GroupUserInRequest request)
+        {
+            request.UserId = _loginContext.AccountId;
+            return await _groupService.InsertsAsync(request);
+        }
         /// <summary>
         /// 退出小组
         /// </summary>