2024-10-09 16:46:49 +08:00
|
|
|
using LFlow.Base.BusinessInterface;
|
2024-10-09 14:45:09 +08:00
|
|
|
using LFlow.Base.Interfaces;
|
2024-10-09 16:46:49 +08:00
|
|
|
using LFlow.Home.Models.DtoModel;
|
2024-10-09 14:45:09 +08:00
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2024-10-10 17:05:35 +08:00
|
|
|
using Serilog;
|
|
|
|
|
using Serilog.Core;
|
2024-10-09 14:45:09 +08:00
|
|
|
|
|
|
|
|
namespace LFlow.Home.Controllers;
|
2024-10-16 11:27:14 +08:00
|
|
|
public class HomeController(IHomeService<HomeDto, string> service, ILogger logger)
|
2024-10-09 14:45:09 +08:00
|
|
|
{
|
2024-10-09 17:09:38 +08:00
|
|
|
[HttpGet]
|
2024-10-09 16:46:49 +08:00
|
|
|
public string Home(string id)
|
2024-10-09 14:45:09 +08:00
|
|
|
{
|
2024-10-10 17:05:35 +08:00
|
|
|
logger.Information($"request id -> {id} _ hot_reload _ 1");
|
2024-10-09 16:46:49 +08:00
|
|
|
return service?.GetById(id)?.ToString() ?? "No service";
|
2024-10-09 14:45:09 +08:00
|
|
|
}
|
|
|
|
|
}
|