Files
simapi-cj/src/simapi.cj
T
xrain 2b8d2c47be feat: SimApiError 增加顶层函数,支持无前缀 error(400);精简 simapi.cj 为包锚点
- error/errorWhen/errorWhenTrue/errorWhenFalse/errorWhenNull 提升为 simapi.helpers 顶层函数,
  import simapi.helpers.* 后可直接调用(对齐 C# using static SimApi.Helpers.SimApiError)
- SimApiError 类保留为兼容门面(旧写法仍可用)
- simapi.cj 精简为仅 package 声明:实测 cjpm 要求 src 根目录必须有 .cj 锚点,
  否则不扫描子目录导致整包编译为空;SimApi 类/version 常量无任何引用,已移除
2026-08-17 09:06:17 +08:00

11 lines
449 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* Copyright (c) 2025 SimcuTeam. All rights reserved.
* 移植自 C# 项目 SimApiE:\simcu\simapi-net),遵循 MIT 许可证。
*
* 说明:本文件是 simapi 根包的入口锚点。cjpm 要求 src 根目录至少有一个 .cj 文件,
* 否则不会扫描 src 子目录(helpers/extensions/...),整个包将编译为空。
* 实际功能全部在子包中(simapi.helpers / simapi.extensions / ...)。
*/
package simapi