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.

32 lines
723 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Admin.Core.Common
{
public class ActionAttribute : Attribute
{
/// <summary>
/// 日志标题
/// </summary>
public string Title { get; set; } = string.Empty;
/// <summary>
/// 操作类型
/// </summary>
public ActionType ActionType { get; set; } = ActionType.OTHER;
/// <summary>
/// 日志Filter
/// </summary>
/// <param name="title"></param>
/// <param name="type"></param>
public ActionAttribute(string title, ActionType type)
{
Title = title;
ActionType = type;
}
}
}