重构: 源码文件蛇形命名, 接口去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
+38
View File
@@ -0,0 +1,38 @@
/*
* Copyright (c) 2025 SimcuTeam. All rights reserved.
* 遵循 MIT 许可证。
* Communications/SimApiLoginItem:登录信息项。
*/
package simcu::simapi.communications
import std.collection.*
/**
* 登录信息项:Token 认证通过后注入请求上下文。
*
* 序列化/反序列化由 simapi_serialization 反射处理(免标注、免约束),
* 字段 id/types/meta/extra 全部为受支持类型(String/Array/HashMap)。
*/
public class SimApiLoginItem {
public var id: String = ""
public var types: Array<String> = ["user"]
public var meta: HashMap<String, String> = HashMap<String, String>()
public var extra: HashMap<String, Any> = HashMap<String, Any>()
public init() {}
public init(id: String) {
this.id = id
this.types = ["user"]
this.meta = HashMap<String, String>()
this.extra = HashMap<String, Any>()
}
public init(id: String, types: Array<String>) {
this.id = id
this.types = types
this.meta = HashMap<String, String>()
this.extra = HashMap<String, Any>()
}
}