using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Yi.RBAC.Domain.Shared.Logs { [AttributeUsage(AttributeTargets.Method)] public class OperLogAttribute : System.Attribute { /// /// 操作类型 /// public OperEnum OperType { get; set; } /// /// 日志标题(模块) /// public string Title { get; set; } /// /// 是否保存请求数据 /// public bool IsSaveRequestData { get; set; } = true; /// /// 是否保存返回数据 /// public bool IsSaveResponseData { get; set; } = true; public OperLogAttribute(string title, OperEnum operationType) { this.Title = title; this.OperType = operationType; } } }