LFlow/LFlow.User/Controllers/UserController.cs

17 lines
426 B
C#
Raw Normal View History

2024-10-09 16:46:49 +08:00
using LFlow.Base.Interfaces;
2024-10-09 17:09:09 +08:00
using LFlow.Base.Interfaces.BusinessInterface;
using LFlow.User.Model.Dto;
using Microsoft.AspNetCore.Mvc;
2024-10-09 16:46:49 +08:00
namespace LFlow.User.Controllers
{
2024-10-09 17:09:09 +08:00
public class UserController(IUserService<UserDto> service) : BaseController
2024-10-09 16:46:49 +08:00
{
2024-10-09 17:09:09 +08:00
[HttpGet]
public string Get(string id)
{
return service?.GetById(id)?.ToString() ?? "No service";
}
2024-10-09 16:46:49 +08:00
}
}