diff --git a/Src/Dlhis.Sys/Dlhis.Sys.csproj b/Src/Dlhis.Sys/Dlhis.Sys.csproj index b14b421d..60ff68d5 100644 --- a/Src/Dlhis.Sys/Dlhis.Sys.csproj +++ b/Src/Dlhis.Sys/Dlhis.Sys.csproj @@ -24,4 +24,10 @@ + + + + + + diff --git a/Src/Dlhis.Sys/Server/Controllers/ServerController.cs b/Src/Dlhis.Sys/Server/Controllers/ServerController.cs new file mode 100644 index 00000000..28cbe670 --- /dev/null +++ b/Src/Dlhis.Sys/Server/Controllers/ServerController.cs @@ -0,0 +1,28 @@ +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; + +namespace Dlhis.Sys.Server.Controllers; + +/// +/// 服务器信息 +/// +[Authorize] +[Route("api/[controller]")] +[ApiController] +public class ServerController : ControllerBase +{ + public ServerController() + { + + } + + /// + /// 当前时间 + /// + /// + [HttpGet("datetime")] + public DateTime GetServerDateTime() + { + return DateTime.Now; + } +}