操作日志特性、操作日志全局过滤器搭建

This commit is contained in:
陈淳
2022-09-29 17:02:34 +08:00
parent 8eef0e410e
commit be7ea64c5a
6 changed files with 87 additions and 15 deletions

View File

@@ -0,0 +1,23 @@
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.IdentityModel.JsonWebTokens;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Yi.Framework.Common.Const;
using Yi.Framework.Common.Enum;
namespace Yi.Framework.WebCore.AttributeExtend
{
[AttributeUsage(AttributeTargets.Method)]
public class LogAttribute : Attribute
{
private OperationEnum OperationType { get; set; }
public LogAttribute(OperationEnum operationType)
{
this.OperationType = operationType;
}
}
}