refactor(device): 将设备列表和景点筛选接口中的 total 类型从 Long 改为 Integer
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good

- 修改了 DeviceV2ListResponse、DeviceV2WithConfigListResponse 和 ScenicFilterPageResponse 类中的 total 字段类型
- 从 Long 改为 Integer,以确保数据类型一致性并可能提高性能
This commit is contained in:
2025-09-04 17:00:35 +08:00
parent 5b757eda8d
commit 0a13bd8b12
3 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ import java.util.List;
@Data @Data
public class DeviceV2ListResponse { public class DeviceV2ListResponse {
private List<DeviceV2DTO> list; private List<DeviceV2DTO> list;
private Long total; private Integer total;
private Integer page; private Integer page;
private Integer pageSize; private Integer pageSize;
} }

View File

@@ -7,7 +7,7 @@ import java.util.List;
@Data @Data
public class DeviceV2WithConfigListResponse { public class DeviceV2WithConfigListResponse {
private List<DeviceV2WithConfigDTO> list; private List<DeviceV2WithConfigDTO> list;
private Long total; private Integer total;
private Integer page; private Integer page;
private Integer pageSize; private Integer pageSize;
} }

View File

@@ -11,7 +11,7 @@ public class ScenicFilterPageResponse {
private List<ScenicFilterItem> list; private List<ScenicFilterItem> list;
@JsonProperty("total") @JsonProperty("total")
private Long total; private Integer total;
@JsonProperty("page") @JsonProperty("page")
private Integer page; private Integer page;