mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-20 08:26:37 +08:00
框架分层
This commit is contained in:
15
Yi.Framework/Yi.Framework.ApiMicroservice/WeatherForecast.cs
Normal file
15
Yi.Framework/Yi.Framework.ApiMicroservice/WeatherForecast.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Yi.Framework.ApiMicroservice
|
||||
{
|
||||
public class WeatherForecast
|
||||
{
|
||||
public DateTime Date { get; set; }
|
||||
|
||||
public int TemperatureC { get; set; }
|
||||
|
||||
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
|
||||
|
||||
public string Summary { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user