Browse Source

[init]log文件上传

pull/1/head
zhaozhenjing 3 months ago
parent
commit
c367d93264
  1. 17
      src/1.datas/ATS.NonCustodial.Domain/Entities/Log/AppLoginLog.cs
  2. 42
      src/1.datas/ATS.NonCustodial.Domain/Entities/Log/AppOperationLog.cs

17
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
{
/// <summary>
/// 登录日志
/// </summary>
/// Author:mxg
/// CreatedTimed:2022-05-12 18:30 PM
[Table("app_login_log")]
[Index(nameof(CreatedUserId), nameof(CreatedUserName))]
public class AppLoginLog : LogAbstract
{
}
}

42
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
{
/// <summary>
/// 操作日志
/// </summary>
/// Author:mxg
/// CreatedTimed:2022-05-12 18:30 PM
[Table("app_operation_log")]
[Index(nameof(CreatedUserId), nameof(CreatedUserName))]
public class AppOperationLog : LogAbstract
{
/// <summary>
/// 接口名称
/// </summary>
[MaxLength(StringLengthConstants.StringLength255)]
public string? ApiLabel { get; set; }
/// <summary>
/// 接口地址
/// </summary>
[MaxLength(StringLengthConstants.StringLength128)]
public string? ApiPath { get; set; }
/// <summary>
/// 接口提交方法
/// </summary>
[MaxLength(StringLengthConstants.StringLength10)]
public string? ApiMethod { get; set; }
/// <summary>
/// 操作参数
/// </summary>
[MaxLength(StringLengthConstants.StringLength2048)]
public string? Params { get; set; }
}
}
Loading…
Cancel
Save