wip: 🧠 初步的框架

This commit is contained in:
tk
2023-08-25 15:33:42 +08:00
parent 57c1ba2002
commit 18b4d7547a
1014 changed files with 122380 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
namespace NetAdmin.Domain.DbMaps.Dependency.Fields;
/// <summary>
/// 创建者客户端字段接口
/// </summary>
public interface IFieldCreatedClient
{
/// <summary>
/// 创建者客户端IP
/// </summary>
int? CreatedClientIp { get; init; }
/// <summary>
/// 创建者来源地址
/// </summary>
string CreatedReferer { get; init; }
/// <summary>
/// 创建者客户端用户代理
/// </summary>
string CreatedUserAgent { get; init; }
}

View File

@@ -0,0 +1,12 @@
namespace NetAdmin.Domain.DbMaps.Dependency.Fields;
/// <summary>
/// 创建时间字段接口
/// </summary>
public interface IFieldCreatedTime
{
/// <summary>
/// 创建时间
/// </summary>
DateTime CreatedTime { get; init; }
}

View File

@@ -0,0 +1,17 @@
namespace NetAdmin.Domain.DbMaps.Dependency.Fields;
/// <summary>
/// 创建用户字段接口
/// </summary>
public interface IFieldCreatedUser
{
/// <summary>
/// 创建者编号
/// </summary>
long? CreatedUserId { get; init; }
/// <summary>
/// 创建者用户名
/// </summary>
string CreatedUserName { get; set; }
}

View File

@@ -0,0 +1,12 @@
namespace NetAdmin.Domain.DbMaps.Dependency.Fields;
/// <summary>
/// 启用字段接口
/// </summary>
public interface IFieldEnabled
{
/// <summary>
/// 是否启用
/// </summary>
bool Enabled { get; init; }
}

View File

@@ -0,0 +1,17 @@
namespace NetAdmin.Domain.DbMaps.Dependency.Fields;
/// <summary>
/// 修改客户端字段接口
/// </summary>
public interface IFieldModifiedClient
{
/// <summary>
/// 客户端IP
/// </summary>
int ModifiedClientIp { get; init; }
/// <summary>
/// 客户端用户代理
/// </summary>
string ModifiedUserAgent { get; init; }
}

View File

@@ -0,0 +1,12 @@
namespace NetAdmin.Domain.DbMaps.Dependency.Fields;
/// <summary>
/// 修改时间字段接口
/// </summary>
public interface IFieldModifiedTime
{
/// <summary>
/// 修改时间
/// </summary>
DateTime? ModifiedTime { get; init; }
}

View File

@@ -0,0 +1,17 @@
namespace NetAdmin.Domain.DbMaps.Dependency.Fields;
/// <summary>
/// 更新用户字段接口
/// </summary>
public interface IFieldModifiedUser
{
/// <summary>
/// 修改者编号
/// </summary>
long? ModifiedUserId { get; init; }
/// <summary>
/// 修改者用户名
/// </summary>
string ModifiedUserName { get; init; }
}

View File

@@ -0,0 +1,17 @@
namespace NetAdmin.Domain.DbMaps.Dependency.Fields;
/// <summary>
/// 拥有者字段接口
/// </summary>
public interface IFieldOwner
{
/// <summary>
/// 拥有者部门编号
/// </summary>
long? OwnerDeptId { get; init; }
/// <summary>
/// 拥有者用户编号
/// </summary>
long? OwnerId { get; init; }
}

View File

@@ -0,0 +1,12 @@
namespace NetAdmin.Domain.DbMaps.Dependency.Fields;
/// <summary>
/// 主键字段接口
/// </summary>
public interface IFieldPrimary<T>
{
/// <summary>
/// 唯一编码
/// </summary>
T Id { get; init; }
}

View File

@@ -0,0 +1,12 @@
namespace NetAdmin.Domain.DbMaps.Dependency.Fields;
/// <summary>
/// 排序字段接口
/// </summary>
public interface IFieldSort
{
/// <summary>
/// 排序值,越大越前
/// </summary>
long Sort { get; init; }
}

View File

@@ -0,0 +1,12 @@
namespace NetAdmin.Domain.DbMaps.Dependency.Fields;
/// <summary>
/// 描述字段接口
/// </summary>
public interface IFieldSummary
{
/// <summary>
/// 描述
/// </summary>
string Summary { get; init; }
}

View File

@@ -0,0 +1,12 @@
namespace NetAdmin.Domain.DbMaps.Dependency.Fields;
/// <summary>
/// 版本字段接口
/// </summary>
public interface IFieldVersion
{
/// <summary>
/// 数据版本
/// </summary>
long Version { get; init; }
}