From c367d93264c461005e912cc1e1c6c4354ddcb414 Mon Sep 17 00:00:00 2001 From: zhaozhenjing Date: Mon, 15 Sep 2025 10:13:41 +0800 Subject: [PATCH] =?UTF-8?q?[init]log=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entities/Log/AppLoginLog.cs | 17 ++++++++ .../Entities/Log/AppOperationLog.cs | 42 +++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 src/1.datas/ATS.NonCustodial.Domain/Entities/Log/AppLoginLog.cs create mode 100644 src/1.datas/ATS.NonCustodial.Domain/Entities/Log/AppOperationLog.cs 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