Initial_commit_SecMPS_v2
This commit is contained in:
31
api_sqlsugar/VolPro.Core/Middleware/ActionLog.cs
Normal file
31
api_sqlsugar/VolPro.Core/Middleware/ActionLog.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VolPro.Core.Middleware
|
||||
{
|
||||
public class ActionLog : Attribute
|
||||
{
|
||||
public string LogType { get; set; }
|
||||
/// <summary>
|
||||
/// 是否写入日志
|
||||
/// </summary>
|
||||
public bool Write { get; set; }
|
||||
public ActionLog() : this(true)
|
||||
{
|
||||
|
||||
}
|
||||
public ActionLog(bool write = true)
|
||||
{
|
||||
Write = write;
|
||||
}
|
||||
public ActionLog(string logType)
|
||||
{
|
||||
LogType = logType;
|
||||
Write = true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user