refactor: UnifiedResponse 的字段为 final

This commit is contained in:
zhouxy108 2025-04-09 21:45:04 +08:00
parent a05fc6cfe1
commit 7abd3a05ab

View File

@ -26,10 +26,10 @@ import javax.annotation.Nullable;
*/ */
public class UnifiedResponse<T> { public class UnifiedResponse<T> {
private String code; private final String code;
private String message; private final String message;
private @Nullable T data; private final @Nullable T data;
// ================================ // ================================
// #region - Constructors // #region - Constructors