From 81e2ddc4ba4bd0c4db6e461d06a4f98ab9b2326f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?old=E6=98=93?= <156663459@qq.com> Date: Tue, 27 Feb 2024 16:22:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=B0=E9=97=BB=E6=9D=A5?= =?UTF-8?q?=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- New_College.Api/Controllers/Front/NewsInfoController.cs | 1 + New_College.Model/ViewModels/Result/NewsInfoResponse.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/New_College.Api/Controllers/Front/NewsInfoController.cs b/New_College.Api/Controllers/Front/NewsInfoController.cs index 8cc554e..acb3aed 100644 --- a/New_College.Api/Controllers/Front/NewsInfoController.cs +++ b/New_College.Api/Controllers/Front/NewsInfoController.cs @@ -64,6 +64,7 @@ namespace New_College.Api.Controllers.Front { CoverImg = s.CoverImg, CreateTime = s.CreateTime.Value, + Source = s.Author, Id = s.Id, Title = s.Title, Summary = s.Summary, diff --git a/New_College.Model/ViewModels/Result/NewsInfoResponse.cs b/New_College.Model/ViewModels/Result/NewsInfoResponse.cs index 3817c02..d572d46 100644 --- a/New_College.Model/ViewModels/Result/NewsInfoResponse.cs +++ b/New_College.Model/ViewModels/Result/NewsInfoResponse.cs @@ -21,6 +21,7 @@ namespace New_College.Model.ViewModels public string CoverImg { get; set; } + public string Source { get; set; } public string Summary { get; set; } public DateTime CreateTime { get; set; }