diff --git a/src/1.datas/ATS.NonCustodial.Domain/Entities/Log/AppLoginLog.cs b/src/1.datas/ATS.NonCustodial.Domain/Entities/Log/AppLoginLog.cs new file mode 100644 index 0000000..e492d5b --- /dev/null +++ b/src/1.datas/ATS.NonCustodial.Domain/Entities/Log/AppLoginLog.cs @@ -0,0 +1,17 @@ +using ATS.NonCustodial.Domain.Shared.AggRootEntities; +using Microsoft.EntityFrameworkCore; +using System.ComponentModel.DataAnnotations.Schema; + +namespace ATS.NonCustodial.Domain.Entities.Logs +{ + /// + /// 登录日志 + /// + /// Author:mxg + /// CreatedTimed:2022-05-12 18:30 PM + [Table("app_login_log")] + [Index(nameof(CreatedUserId), nameof(CreatedUserName))] + public class AppLoginLog : LogAbstract + { + } +} \ No newline at end of file diff --git a/src/1.datas/ATS.NonCustodial.Domain/Entities/Log/AppOperationLog.cs b/src/1.datas/ATS.NonCustodial.Domain/Entities/Log/AppOperationLog.cs new file mode 100644 index 0000000..dd9786a --- /dev/null +++ b/src/1.datas/ATS.NonCustodial.Domain/Entities/Log/AppOperationLog.cs @@ -0,0 +1,42 @@ +using ATS.NonCustodial.Domain.Shared.AggRootEntities; +using ATS.NonCustodial.Domain.Shared.Constants; +using Microsoft.EntityFrameworkCore; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace ATS.NonCustodial.Domain.Entities.Logs +{ + /// + /// 操作日志 + /// + /// Author:mxg + /// CreatedTimed:2022-05-12 18:30 PM + [Table("app_operation_log")] + [Index(nameof(CreatedUserId), nameof(CreatedUserName))] + public class AppOperationLog : LogAbstract + { + /// + /// 接口名称 + /// + [MaxLength(StringLengthConstants.StringLength255)] + public string? ApiLabel { get; set; } + + /// + /// 接口地址 + /// + [MaxLength(StringLengthConstants.StringLength128)] + public string? ApiPath { get; set; } + + /// + /// 接口提交方法 + /// + [MaxLength(StringLengthConstants.StringLength10)] + public string? ApiMethod { get; set; } + + /// + /// 操作参数 + /// + [MaxLength(StringLengthConstants.StringLength2048)] + public string? Params { get; set; } + } +} \ No newline at end of file