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
+17
View File
@@ -0,0 +1,17 @@
namespace SimApi.ModelBinders;
/// <summary>
/// 密钥提供器接口(抽象密钥获取逻辑)
/// </summary>
public abstract class AesBodyProviderBase
{
public string? AppIdName { get; set; } = "appId";
/// <summary>
/// 根据appId获取对应的密钥
/// </summary>
/// <param name="appId">应用ID</param>
/// <returns>密钥(返回null表示获取失败)</returns>
public abstract string? GetKey(string? appId);
}