From e9d35eabbdd457c22046fb5a8d59948545d87431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com> Date: Tue, 9 Nov 2021 17:09:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/WeatherForecastController.cs | 13 ------------- .../Yi.Framework.Model/Yi.Framework.Model.csproj | 1 + 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/Yi.Framework/Yi.Framework.AuthenticationCenter/Controllers/WeatherForecastController.cs b/Yi.Framework/Yi.Framework.AuthenticationCenter/Controllers/WeatherForecastController.cs index 182d709b..3eeeea74 100644 --- a/Yi.Framework/Yi.Framework.AuthenticationCenter/Controllers/WeatherForecastController.cs +++ b/Yi.Framework/Yi.Framework.AuthenticationCenter/Controllers/WeatherForecastController.cs @@ -22,18 +22,5 @@ namespace Yi.Framework.AuthenticationCenter.Controllers { _logger = logger; } - - [HttpGet] - public IEnumerable Get() - { - var rng = new Random(); - return Enumerable.Range(1, 5).Select(index => new WeatherForecast - { - Date = DateTime.Now.AddDays(index), - TemperatureC = rng.Next(-20, 55), - Summary = Summaries[rng.Next(Summaries.Length)] - }) - .ToArray(); - } } } diff --git a/Yi.Framework/Yi.Framework.Model/Yi.Framework.Model.csproj b/Yi.Framework/Yi.Framework.Model/Yi.Framework.Model.csproj index 20c72c23..a18e350c 100644 --- a/Yi.Framework/Yi.Framework.Model/Yi.Framework.Model.csproj +++ b/Yi.Framework/Yi.Framework.Model/Yi.Framework.Model.csproj @@ -19,6 +19,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive +