Skip to content

Commit 9e88119

Browse files
committed
refactor(Http): 移除可空类型标记以简化代码
将GetNodeCountRequest和GetNodeCountResponse中的ServerType和QueryServerType属性从可空字符串(string?)改为普通字符串(string),以简化代码逻辑并减少不必要的空值检查。
1 parent 86c15a7 commit 9e88119

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GameFrameX.Hotfix/Logic/Http/DiscoveryCenter/GetNodeCountHttpHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public class GetNodeCountRequest : HttpMessageRequestBase
117117
/// 服务器类型(可选)
118118
/// </summary>
119119
/// <value>要统计的特定服务器类型,如果为null则统计所有类型</value>
120-
public string? ServerType { get; set; }
120+
public string ServerType { get; set; }
121121
}
122122

123123
/// <summary>
@@ -153,5 +153,5 @@ public class GetNodeCountResponse : HttpMessageResponseBase
153153
/// 查询的服务器类型
154154
/// </summary>
155155
/// <value>请求中指定的服务器类型,如果为null表示查询所有类型</value>
156-
public string? QueryServerType { get; set; }
156+
public string QueryServerType { get; set; }
157157
}

0 commit comments

Comments
 (0)