Files
SecMPS/api_sqlsugar/VolPro.Core/Middleware/ActionLog.cs
2026-05-15 23:22:48 +08:00

32 lines
639 B
C#

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;
}
}
}