创建签名验证自定义中间件 ,优化代码结构
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace QRCodeService.Infrastructure.Middlewares
|
||||
{
|
||||
public class CheckSignAttribute:Attribute
|
||||
{
|
||||
public Type ModelType { get; set; }
|
||||
|
||||
public CheckSignAttribute(Type type)
|
||||
{
|
||||
ModelType = type;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user