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;
|
|
|
|
|
|
|
|
namespace LFlow.Home.Controllers;
|
2024-10-09 16:46:49 +08:00
|
|
|
public class HomeController(IHomeService<HomeDto, string> service) : BaseController
|
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-09 16:46:49 +08:00
|
|
|
return service?.GetById(id)?.ToString() ?? "No service";
|
2024-10-09 14:45:09 +08:00
|
|
|
}
|
|
|
|
}
|