精简了openapi相关

This commit is contained in:
xrain committed 2026-09-01 23:36:07 +08:00
1 parent eed230aab0
commit 06884a920c
73 files changed
+465 -1214

No files matched your search

-9
View File
@@ -1,9 +0,0 @@
/*
* Copyright (c) 杭州颉创科技有限公司 2025. All rights reserved.
* This source file is licensed under the MIT License found in the
* LICENSE file in the root directory of this source tree.
*/
package simcu::simapi.openapi.models
protected import simcu::simapi.openapi.interfaces.*
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+64
View File
@@ -0,0 +1,64 @@
/*
* Copyright (c) 杭州颉创科技有限公司 2025. All rights reserved.
* This source file is licensed under the MIT License found in the
* LICENSE file in the root directory of this source tree.
*/
package simcu::simapi.openapi.models
/**
* @brief 定义 OpenAPI 对象序列化接口。
*/
public interface IOpenApiSerializable {
/**
* @brief 按 OpenAPI V3 格式写出当前对象。
* @param writer OpenAPI 写入器。
*/
func serializeAsV3(writer: IOpenApiWriter): Unit
}
/**
* @brief 定义 OpenAPI 文档写入接口。
*/
public interface IOpenApiWriter {
/**
* @brief 刷新当前写入器缓冲区。
*/
func flush(): Unit
/**
* @brief 开始写入对象。
*/
func startObject(): Unit
/**
* @brief 结束写入对象。
*/
func endObject(): Unit
/**
* @brief 开始写入数组。
*/
func startArray(): Unit
/**
* @brief 结束写入数组。
*/
func endArray(): Unit
/**
* @brief 写入属性名称。
* @param name 要写入的属性名称。
*/
func writeName(name: String): Unit
/**
* @brief 写入整数值。
* @param value 要写入的整数值。
*/
func writeValue(value: Int64): Unit
/**
* @brief 写入布尔值。
* @param value 要写入的布尔值。
*/
func writeValue(value: Bool): Unit
/**
* @brief 写入字符串值。
* @param value 要写入的字符串值。
*/
func writeValue(value: String): Unit
}