lihao 4 년 전
부모
커밋
9e389987a7

+ 5 - 4
GxPress/Model/GxPress.Result/ArticleGroupUser/ArticleGroupUserListResult.cs

@@ -1,7 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-
 namespace GxPress.Result.ArticleGroupUser
 {
     /// <summary>
@@ -31,5 +27,10 @@ namespace GxPress.Result.ArticleGroupUser
         /// </summary>
         /// <value></value>
         public bool IsSystemDefault { get; set; }
+        /// <summary>
+        /// 排序
+        /// </summary>
+        /// <value></value>
+        public int Sort { get; set; }
     }
 }

+ 1 - 1
GxPress/Repository/GxPress.Repository.Implement/ArticleGroupRepository.cs

@@ -64,7 +64,7 @@ namespace GxPress.Repository.Implement
             var list = new List<ArticleGroupUserListResult>();
             foreach (var item in result)
             {
-                list.Add(new ArticleGroupUserListResult() { Id = item.Id, UserId = userId, ArticleGroupId = item.Id, ArticleGroupName = item.Name, IsSystemDefault = item.IsSystemDefault });
+                list.Add(new ArticleGroupUserListResult() { Id = item.Id, UserId = userId, ArticleGroupId = item.Id, ArticleGroupName = item.Name, IsSystemDefault = item.IsSystemDefault,Sort=item.Sort });
             }
             return list;
         }