feat: 框架代码同步 (#173)

Co-authored-by: tk <fiyne1a@dingtalk.com>
This commit is contained in:
2024-08-29 17:21:06 +08:00
committed by GitHub
parent b9b228c9e1
commit c088492cfa
95 changed files with 3055 additions and 2140 deletions

View File

@@ -0,0 +1,13 @@
namespace NetAdmin.Domain.Dto.Sys.Cache;
/// <summary>
/// 请求:删除缓存项
/// </summary>
public sealed record DelEntryReq : DataAbstraction
{
/// <summary>
/// 缓存键
/// </summary>
[Required(ErrorMessageResourceType = typeof(Ln), ErrorMessageResourceName = nameof(Ln.缓存键不能为空))]
public string Key { get; init; }
}

View File

@@ -0,0 +1,17 @@
namespace NetAdmin.Domain.Dto.Sys.Tool;
/// <summary>
/// 请求执行SQL
/// </summary>
public record ExecuteSqlReq : DataAbstraction
{
/// <summary>
/// SQL 语句
/// </summary>
public string Sql { get; init; }
/// <summary>
/// 超时时间(秒)
/// </summary>
public int TimeoutSecs { get; init; }
}