diff --git a/cjpm.lock b/cjpm.lock index 7b775eb..71dcb68 100644 --- a/cjpm.lock +++ b/cjpm.lock @@ -2,19 +2,19 @@ version = 0 [requires] soulsoft_extensions_hosting = {version = "1.0.20260528"} - soulsoft_web_cors = {version = "1.0.20260528"} soulsoft_extensions_options_configuration = {version = "1.0.20260528"} soulsoft_web_http = {version = "1.0.20260528"} - soulsoft_extensions_logging = {version = "1.0.20260528"} - soulsoft_extensions_configuration = {version = "1.0.20260528"} + soulsoft_web_cors = {version = "1.0.20260528"} + soulsoft_extensions_options = {version = "1.0.20260528"} soulsoft_web_routing = {version = "1.0.20260528"} + soulsoft_serialization = {version = "1.0.20260528"} + soulsoft_extensions_logging = {version = "1.0.20260528"} + soulsoft_web_hosting = {version = "1.0.20260528"} soulsoft_extensions_logging_console = {version = "1.0.20260528"} + soulsoft_net_http = {version = "1.0.20260528"} + soulsoft_web_mvc = {version = "1.0.20260528"} + soulsoft_extensions_logging_configuration = {version = "1.0.20260528"} soulsoft_extensions_injection = {version = "1.0.20260528"} redis = {version = "1.0.20260627"} - soulsoft_web_hosting = {version = "1.0.20260528"} - soulsoft_extensions_logging_configuration = {version = "1.0.20260528"} + soulsoft_extensions_configuration = {version = "1.0.20260528"} soulsoft_identity_claims = {version = "1.0.20260528"} - soulsoft_web_mvc = {version = "1.0.20260528"} - soulsoft_serialization = {version = "1.0.20260528"} - soulsoft_extensions_options = {version = "1.0.20260528"} - soulsoft_net_http = {version = "1.0.20260528"} diff --git a/src/communications/SimApiBaseRequest.cj b/src/communications/SimApiBaseRequest.cj index a3929ee..35e54ca 100644 --- a/src/communications/SimApiBaseRequest.cj +++ b/src/communications/SimApiBaseRequest.cj @@ -1,26 +1,19 @@ /* * Copyright (c) 2025 SimcuTeam. All rights reserved. * 移植自 C# 项目 SimApi(E:\simcu\simapi-net),遵循 MIT 许可证。 + * 通用请求 DTO(对齐 C# Communications/SimApiBaseRequest.cs)。 + * + * 说明:这些类仅作反序列化目标(FromJson / @FromBody),无参构造由编译器自动提供; + * 不声明显式构造器。 */ package simapi.communications -/** - * 基础请求 DTO。 - */ -public class SimApiBaseRequest {} - /** * 仅包含 Id 的请求。 */ public class SimApiIdOnlyRequest { public var id: Int64 = 0 - - public init() {} - - public init(id: Int64) { - this.id = id - } } /** @@ -28,12 +21,6 @@ public class SimApiIdOnlyRequest { */ public class SimApiStringIdOnlyRequest { public var id: String = "" - - public init() {} - - public init(id: String) { - this.id = id - } } /** @@ -42,12 +29,6 @@ public class SimApiStringIdOnlyRequest { */ public class SimApiOneFieldRequest { public var data: ?T = None - - public init() {} - - public init(data: T) { - this.data = Some(data) - } } /** @@ -56,11 +37,4 @@ public class SimApiOneFieldRequest { public class SimApiBasePageRequest { public var page: Int64 = 1 public var count: Int64 = 20 - - public init() {} - - public init(page: Int64, count: Int64) { - this.page = page - this.count = count - } }