重构: 源码文件蛇形命名, 接口去I头(BindRequestContext/SimApiAuthChecker), 清理C#相关说明, serialization依赖路径改 serialization-cj

This commit is contained in:
2026-08-25 13:43:26 +08:00
parent 829f009229
commit 30e5f165f2
56 changed files with 319 additions and 332 deletions
@@ -1,10 +1,10 @@
/*
* Copyright (c) 2025 SimcuTeam. All rights reserved.
* 移植自 C# 项目 SimApiE:\simcu\simapi-net),遵循 MIT 许可证。
* AES body 密钥提供器基类(对齐 C# ModelBinders/AesBodyProviderBase
* 遵循 MIT 许可证。
* AES body 密钥提供器基类。
*
* 说明:本类含配置字段(appIdName),故用 open class 而非 interface
* (Cangjie 接口不能声明字段),与 .NET 抽象类对应。应用继承本类并实现 getKey。
* (Cangjie 接口不能声明字段),与抽象类对应。应用继承本类并实现 getKey。
*/
package simcu::simapi.interfaces
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2025 SimcuTeam. All rights reserved.
* 移植自 C# 项目 SimApiE:\simcu\simapi-net),遵循 MIT 许可证。
* Interfaces/IBindRequestContext:请求上下文绑定接口。
* 遵循 MIT 许可证。
* Interfaces/BindRequestContext:请求上下文绑定接口。
*
* 说明:SimApiBaseController 实现本接口,由 SimApiRequestDelegateFactorysimapi.helpers
* 在创建控制器后注入当前 HttpContext。放在 interfaces 包是为了避免
@@ -15,7 +15,7 @@ import soulsoft_web_http.*
/**
* 请求上下文绑定接口:控制器实现后,框架在派发请求时把当前 HttpContext 注入。
*/
public interface IBindRequestContext {
public interface BindRequestContext {
/**
* 绑定当前请求上下文。
* @param context 当前请求的 HttpContext。
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2025 SimcuTeam. All rights reserved.
* 移植自 C# 项目 SimApiE:\simcu\simapi-net),遵循 MIT 许可证。
* 遵循 MIT 许可证。
*/
package simcu::simapi.interfaces
@@ -9,9 +9,8 @@ import simcu::simapi.communications.*
/**
* 认证后处理 Hook:实现后每次认证成功都会调用。
* 对应 C# 的 SimApi.Interfaces.ISimApiAuthChecker。
*/
public interface ISimApiAuthChecker {
public interface SimApiAuthChecker {
/**
* 认证成功后执行。
* @param loginItem 登录信息。
@@ -1,10 +1,10 @@
/*
* Copyright (c) 2025 SimcuTeam. All rights reserved.
* 移植自 C# 项目 SimApiE:\simcu\simapi-net),遵循 MIT 许可证。
* 签名提供器基类(对齐 C# ModelBinders/SimApiSignProviderBase
* 遵循 MIT 许可证。
* 签名提供器基类。
*
* 说明:本类含配置字段(appIdName/queryExpires 等),故用 open class 而非 interface
* (Cangjie 接口不能声明字段),与 .NET 抽象类对应。应用继承本类并实现 getKey。
* (Cangjie 接口不能声明字段),与抽象类对应。应用继承本类并实现 getKey。
*/
package simcu::simapi.interfaces