李昊 4 years ago
parent
commit
2532dbeb6b

+ 6 - 0
gx_api/GxPress/Model/GxPress.Entity/Group.cs

@@ -82,5 +82,11 @@ namespace GxPress.Entity
         /// <value></value>
         /// <value></value>
         [DataColumn]
         [DataColumn]
         public string LabelName { get; set; }
         public string LabelName { get; set; }
+        /// <summary>
+        /// 是否显示
+        /// </summary>
+        /// <value></value>
+        [DataColumn]
+        public bool IsShow { get; set; }
     }
     }
 }
 }

+ 1 - 6
gx_api/GxPress/Model/GxPress.Entity/tede2/Group/GroupCategroy.cs

@@ -20,11 +20,6 @@ namespace GxPress.Entity.tede2.Group
         /// <value></value>
         /// <value></value>
         [DataColumn]
         [DataColumn]
         public int ParentId { get; set; }
         public int ParentId { get; set; }
-        /// <summary>
-        /// 是否可见
-        /// </summary>
-        /// <value></value>
-        [DataColumn]
-        public bool IsShow { get; set; }
+       
     }
     }
 }
 }

+ 5 - 0
gx_api/GxPress/Model/GxPress.Request/App/Group/GroupInRequest.cs

@@ -72,5 +72,10 @@ namespace GxPress.Request.App.Group
         /// </summary>
         /// </summary>
         /// <value></value>
         /// <value></value>
         public string LabelName { get; set; }
         public string LabelName { get; set; }
+        /// <summary>
+        /// 是否显示
+        /// </summary>
+        /// <value></value>
+        public bool IsShow { get; set; }
     }
     }
 }
 }

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

@@ -61,5 +61,10 @@ namespace GxPress.Request.App.Group
         /// </summary>
         /// </summary>
         /// <value></value>
         /// <value></value>
         public string LabelName { get; set; }
         public string LabelName { get; set; }
+        /// <summary>
+        /// 是否显示 1显示 
+        /// </summary>
+        /// <value></value>
+        public int IsShow { get; set; }
     }
     }
 }
 }

+ 4 - 1
gx_api/GxPress/Repository/GxPress.Repository.Implement/GroupRepository.cs

@@ -65,7 +65,8 @@ namespace GxPress.Repository.Implement
                 IsWords = false,
                 IsWords = false,
                 UserId = request.UserId,
                 UserId = request.UserId,
                 GroupCategroyId = request.GroupCategroyId,
                 GroupCategroyId = request.GroupCategroyId,
-                LabelName=request.LabelName
+                LabelName = request.LabelName,
+                IsShow = request.IsShow
             };
             };
             if (!string.IsNullOrEmpty(group.AvatarUrl))
             if (!string.IsNullOrEmpty(group.AvatarUrl))
                 group.AvatarUrl = StringUtils.RemoveDomain(group.AvatarUrl);
                 group.AvatarUrl = StringUtils.RemoveDomain(group.AvatarUrl);
@@ -102,6 +103,8 @@ namespace GxPress.Repository.Implement
                 group.Introduce = request.Introduce;
                 group.Introduce = request.Introduce;
             if (!string.IsNullOrEmpty(request.LabelName))
             if (!string.IsNullOrEmpty(request.LabelName))
                 group.LabelName = request.LabelName;
                 group.LabelName = request.LabelName;
+            if (request.IsShow > 0)
+                group.IsShow = request.IsShow == 1;
             return await _repository.UpdateAsync(group);
             return await _repository.UpdateAsync(group);
         }
         }