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

    }
}