feat: 基础模块

注册登录
用户管理
角色管理
部门管理
消息管理
接口管理
菜单管理
字典管理
缓存管理
请求日志
系统设置
版本信息
代码生成
This commit is contained in:
tk
2023-11-17 18:54:31 +08:00
parent 18b4d7547a
commit d26e4c77cc
755 changed files with 30416 additions and 42743 deletions

View File

@@ -12,14 +12,9 @@ namespace NetAdmin.SysComponent.Host.Controllers.Tpl;
/// 示例服务
/// </summary>
[ApiDescriptionSettings(nameof(Tpl), Module = nameof(Tpl))]
public sealed class ExampleController : ControllerBase<IExampleCache, IExampleService>, IExampleModule
public sealed class ExampleController(IExampleCache cache) : ControllerBase<IExampleCache, IExampleService>(cache)
, IExampleModule
{
/// <summary>
/// Initializes a new instance of the <see cref="ExampleController" /> class.
/// </summary>
public ExampleController(IExampleCache cache) //
: base(cache) { }
/// <summary>
/// 批量删除示例
/// </summary>
@@ -50,7 +45,6 @@ public sealed class ExampleController : ControllerBase<IExampleCache, IExampleSe
/// <summary>
/// 示例是否存在
/// </summary>
[NonAction]
public Task<bool> ExistAsync(QueryReq<QueryExampleReq> req)
{
return Cache.ExistAsync(req);
@@ -59,7 +53,6 @@ public sealed class ExampleController : ControllerBase<IExampleCache, IExampleSe
/// <summary>
/// 获取单个示例
/// </summary>
[NonAction]
public Task<QueryExampleRsp> GetAsync(QueryExampleReq req)
{
return Cache.GetAsync(req);