Files
apes-Authon-Server/src/main/java/cn/apes/authon/domain/dto/PageDTO.java
T
figmar 93e13653ab Phase 1-3 完成:apes-commons 内联 + 包名重构 + 编译验证
Phase 1: apes-commons 内联
- 反推并实现 7 个核心类(Res/AuthContext/Login/LoginUser/LoginCustomer/UserSession/DbEntity)
- 新增 LoginAspect AOP 切面(从 Redis 读取会话写入 AuthContext)
- 移除外部 JAR 依赖,项目自包含可独立编译

Phase 2: 包名重构
- cn.apes.cloud → cn.apes.authon 全局包名重构
- @MapperScan 路径更新
- 零 cn.apes.cloud 残留

Phase 3: 编译验证
- maven-compiler-plugin 升级至 3.13.0(兼容 Java 24)
- Lombok 升级至 1.18.40(兼容 Java 24)
- 移除 syncAllTenantsToHuoban(伙伴云同步,非账权核心)
- 新增 IpLocationService 接口 + 桩实现
- 124 个源文件编译通过(BUILD SUCCESS)
2026-08-09 08:40:36 +08:00

26 lines
576 B
Java

package cn.apes.authon.domain.dto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;
@Data
public class PageDTO {
Integer pageIndex;
Integer pageSize;
Integer page;
Integer perPage;
public IPage getPage() {
if (page != null && perPage != null) {
return new Page(page, perPage);
}
if (pageIndex != null && pageSize != null) {
return new Page(pageIndex, pageSize);
}
return new Page(1, 10);
}
}