lihao 4 years ago
parent
commit
f3eb9311a6

+ 5 - 0
gx_api/GxPress/Model/GxPress.Result/App/Group/GroupDetailResult.cs

@@ -188,6 +188,11 @@ namespace GxPress.Result.App.Group
         /// 普通成员数据
         /// </summary>
         public IEnumerable<GroupUserListResult> CommonMemberListResult { get; set; }
+        /// <summary>
+        /// 是否创建者
+        /// </summary>
+        /// <value></value>
+        public bool IsCreator { get; set; }
     }
     /// <summary>
     /// 用户小组列表

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

@@ -274,7 +274,7 @@ namespace GxPress.Repository.Implement
             //获取当前用户的权限
             groupDetailResult.GroupUserRoleId = groupUser != null ? groupUser.GroupUserRoleId : 0;
             groupDetailResult.IsUDisturb = groupUser != null ? groupUser.IsUDisturb : false;
-            //groupDetailResult.IsAdmin = groupDetail != null && groupUser != null ? groupDetail.UserId == groupUser.UserId : false;
+            groupDetailResult.IsCreator = groupDetail != null && groupUser != null ? groupDetail.UserId == groupUser.UserId : false;
             groupDetailResult.IsUser = groupUser != null ? groupUser.UserId == request.UserId : false;
             groupDetailResult.CreatedDate = groupDetail.CreatedDate;
             groupDetailResult.QRCoder = StringUtils.AddDomain(groupDetailResult.QRCoder);