李昊 4 år sedan
förälder
incheckning
0385eee917

+ 4 - 4
gx_api/GxPress/Model/GxPress.Request/App/Group/GroupUpRequest.cs

@@ -35,15 +35,15 @@ namespace GxPress.Request.App.Group
         public string Introduce { get; set; }
 
         /// <summary>
-        ///是否管理用同意
+        ///是否管理用同意 1是 2否 
         /// </summary>
-        public bool IsAdmin { get; set; }
+        public int IsAdmin { get; set; }
 
         /// <summary>
-        /// 是否禁言
+        /// 是否禁言1是 2否 
         /// </summary>
 
-        public bool IsWords { get; set; }
+        public int IsWords { get; set; }
 
         /// <summary>
         /// 是否免打扰

+ 2 - 0
gx_api/GxPress/Repository/GxPress.Repository.Implement/GroupRepository.cs

@@ -105,6 +105,8 @@ namespace GxPress.Repository.Implement
                 group.LabelName = request.LabelName;
             if (request.IsShow > 0)
                 group.IsShow = request.IsShow == 1;
+            if (request.IsWords > 0)
+                group.IsWords = request.IsWords == 1;
             return await _repository.UpdateAsync(group);
         }