Browse Source

公告 标签优化

lifa 2 years ago
parent
commit
84217a11ae

+ 2 - 2
src/platform/ZhonTai.Admin/Services/DiTuiAPI/Dto/IndexOutput.cs

@@ -107,7 +107,7 @@ namespace ZhonTai.Admin.Services.DiTuiAPI.Dto
     /// </summary>
     /// </summary>
     public class Notices
     public class Notices
     {
     {
-        public Notices(List<string> tags, string title, string id)
+        public Notices(string tags, string title, string id)
         {
         {
             Tags = tags;
             Tags = tags;
             Title = title;
             Title = title;
@@ -116,7 +116,7 @@ namespace ZhonTai.Admin.Services.DiTuiAPI.Dto
         /// <summary>
         /// <summary>
         ///  标签
         ///  标签
         /// </summary>
         /// </summary>
-        public List<string> Tags { get; set; }
+        public string Tags { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// 标题
         /// 标题

+ 3 - 8
src/platform/ZhonTai.Admin/Services/DiTuiAPI/IndexService.cs

@@ -67,14 +67,9 @@ namespace ZhonTai.Admin.Services.DiTuiAPI
 
 
 
 
             List<Notices> notices = new List<Notices>();
             List<Notices> notices = new List<Notices>();
-            List<string> tags = new List<string>();
-            tags.Add("最新");
-            tags.Add("重要");
-            List<string> importentTags = new List<string>();
-            importentTags.Add("重要");
-            notices.Add(new Notices(tags,"平台悬赏任务、游戏试玩任务上线通知…","11"));
-            notices.Add(new Notices(importentTags, "快手极速版直推版价格政策调整通知", "22"));
-            notices.Add(new Notices(tags, "12月平台项目重要通知请注意查看!12月平台项目重要通知请注意查看!", "33"));
+            notices.Add(new Notices("最新","平台悬赏任务、游戏试玩任务上线通知…","11"));
+            notices.Add(new Notices("重要", "快手极速版直推版价格政策调整通知", "22"));
+            notices.Add(new Notices("最新", "12月平台项目重要通知请注意查看!12月平台项目重要通知请注意查看!", "33"));
             indexOutPut.Notices = notices;
             indexOutPut.Notices = notices;
 
 
             List<Settlement> settlements = new List<Settlement>();
             List<Settlement> settlements = new List<Settlement>();