add aesbody for get aes cryptbody

This commit is contained in:
2025-11-02 18:58:01 +08:00
parent 9a8d14142a
commit c7373da691
5 changed files with 297 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
using System;
using Microsoft.AspNetCore.Mvc;
using SimApi.ModelBinders;
namespace SimApi.Attributes;
[AttributeUsage(AttributeTargets.Parameter)]
public class AesBodyAttribute : ModelBinderAttribute
{
public Type KeyProvider { get; set; } = typeof(AesBodyProviderBase);
public AesBodyAttribute()
{
// 指定使用自定义的模型绑定器
BinderType = typeof(AesBodyModelBinder);
Name = KeyProvider.FullName;
}
}