You've already forked FrameTour-BE
refactor(device): 将设备列表和景点筛选接口中的 total 类型从 Long 改为 Integer
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good
- 修改了 DeviceV2ListResponse、DeviceV2WithConfigListResponse 和 ScenicFilterPageResponse 类中的 total 字段类型 - 从 Long 改为 Integer,以确保数据类型一致性并可能提高性能
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
@@ -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;
|
||||||
}
|
}
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user