feat:基于furion搭建
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
namespace Yi.Furion.Rbac.Application;
|
||||
|
||||
public class Mapper : IRegister
|
||||
{
|
||||
public void Register(TypeAdapterConfig config)
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Yi.Furion.Rbac.Application;
|
||||
|
||||
public interface ISystemService
|
||||
{
|
||||
string GetDescription();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace Yi.Furion.Rbac.Application;
|
||||
|
||||
public class SystemService : ISystemService, ITransient
|
||||
{
|
||||
public string GetDescription()
|
||||
{
|
||||
return "让 .NET 开发更简单,更通用,更流行。";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
namespace Yi.Furion.Rbac.Application;
|
||||
|
||||
/// <summary>
|
||||
/// 系统服务接口
|
||||
/// </summary>
|
||||
public class SystemAppService : IDynamicApiController
|
||||
{
|
||||
private readonly ISystemService _systemService;
|
||||
public SystemAppService(ISystemService systemService)
|
||||
{
|
||||
_systemService = systemService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取系统描述
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string GetDescription()
|
||||
{
|
||||
return _systemService.GetDescription();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user