You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
748 B
C#

namespace NPin.Framework.Upms.Domain.Shared.OperLog;
[AttributeUsage(AttributeTargets.Method)]
public class OperLogAttribute: Attribute
{
/// <summary>
/// 操作类型
/// </summary>
public OperTypeEnum OperType { get; set; }
/// <summary>
/// 日志标题
/// </summary>
public string Title { get; set; }
/// <summary>
/// 是否保存请求数据
/// </summary>
public bool IsSaveRequestData { get; set; } = true;
/// <summary>
/// 是否保存返回数据
/// </summary>
public bool IsSaveResponseData { get; set; } = true;
public OperLogAttribute(string title, OperTypeEnum operationType)
{
Title = title;
OperType = operationType;
}
}