using OASystem.Domain.Enums; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OASystem.Domain.Attributes { /// /// 指定接口增加操作日志 /// [AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)] public class ApiLogAttribute : Attribute { /// /// 记录操作表名 /// public string TableName { get; set; } /// /// 操作权限 /// public OperationEnum OperationEnum { get; set; } /// /// 记录操作日志 /// /// 表名称 /// 操作类型 public ApiLogAttribute(string tableName, OperationEnum operationEnum) { TableName = tableName; OperationEnum = operationEnum; } } }