- 依赖:新增 simapi_serialization path 依赖(保留 soulsoft_serialization 供 soulsoft web 栈传递使用) - SimApiJson.json / SimApiUtil.json → JsonSerializer.Serialize - SimApiUtil.fromJson / base64DecodeTo → JsonSerializer.Deserialize(去 ISerialization 约束) - SimApiHttpClient signQuery/aesQuery/aesSignQuery/query → 去约束,反序列化换新库 - SimApiBaseResponse/SimApiDataResponse/SimApiLoginItem/AesBodyRequest/AuthSDK DTO → 去 @Serialization 宏/去 soulsoft 接口,改纯 POCO(simapi_serialization 反射) - SimApiBaseResponse 标 @SerializerParent:子类响应序列化包含 _code/_message - SimApiResultWriter / SimApiExceptionMiddleware → 响应输出走 simapi_serialization(统一 _code/_message 格式) - SimApiRequestLogMiddleware 截断 → Deserialize<HashMap<String,Any>> + 重序列化 - SimApiAuthDto JsonValue 字段 → HashMap<String,Any>;SimApiCache.get<T> 去约束 - webdemo:AuthController readFromJson 换 Deserialize;cjpm.toml 补依赖 - 验证:webdemo 启动正常,GET/POST 接口响应格式统一,S3 存储全链路 OK
42 lines
1.7 KiB
TOML
42 lines
1.7 KiB
TOML
[package]
|
|
cjc-version = "1.1.3"
|
|
name = "simapi"
|
|
description = "SimApi 仓颉版:ASP.NET Core 风格 API 基础框架(统一响应/异常拦截/Token认证/缓存/工具集/HTTP客户端)"
|
|
version = "5.2.12"
|
|
target-dir = ""
|
|
output-type = "static"
|
|
override-compile-option = ""
|
|
link-option = ""
|
|
package-configuration = {}
|
|
|
|
[dependencies]
|
|
soulsoft_web_http = "1.0.20260528"
|
|
soulsoft_web_routing = "1.0.20260528"
|
|
soulsoft_web_hosting = "1.0.20260528"
|
|
soulsoft_web_mvc = "1.0.20260528"
|
|
soulsoft_web_cors = "1.0.20260528"
|
|
soulsoft_extensions_logging = "1.0.20260528"
|
|
soulsoft_extensions_logging_console = "1.0.20260528"
|
|
soulsoft_extensions_logging_configuration = "1.0.20260528"
|
|
soulsoft_extensions_configuration = "1.0.20260528"
|
|
soulsoft_extensions_injection = "1.0.20260528"
|
|
soulsoft_extensions_options = "1.0.20260528"
|
|
soulsoft_serialization = "1.0.20260528"
|
|
soulsoft_net_http = "1.0.20260528"
|
|
redis = "1.0.20260627"
|
|
simapi_serialization = { path = "../simapi-serialization" }
|
|
|
|
[target]
|
|
[target.x86_64-w64-mingw32]
|
|
compile-option = "-Woff unused --diagnostic-format=noColor -Woff deprecated -lcrypt32"
|
|
[target.x86_64-w64-mingw32.bin-dependencies]
|
|
path-option = [ "${CANGJIE_STDX_PATH}" ]
|
|
[target.x86_64-unknown-linux-gnu]
|
|
compile-option = "-Woff unused --diagnostic-format=noColor -Woff deprecated -ldl"
|
|
[target.x86_64-unknown-linux-gnu.bin-dependencies]
|
|
path-option = [ "${CANGJIE_STDX_PATH}" ]
|
|
[target.aarch64-unknown-linux-gnu]
|
|
compile-option = "-Woff unused --diagnostic-format=noColor -Woff deprecated -ldl"
|
|
[target.aarch64-unknown-linux-gnu.bin-dependencies]
|
|
path-option = [ "${CANGJIE_STDX_PATH}" ]
|