Skip to content

feat(annotation): 添加ApiResponse注解的types属性映射功能 - #47

Merged
tw2066 merged 2 commits into
3.1from
3.1-apiResponse
Sep 22, 2026
Merged

tw2066 merged 2 commits into
3.1from
3.1-apiResponse

Conversation

@tw2066

@tw2066 tw2066 commented Sep 22, 2026

Copy link
Copy Markdown
Owner

No description provided.

- 新增types参数用于类名+属性类型映射,无需实例化即可生成代理类
- 实现generateByTypes方法支持通过属性类型映射生成代理类
- 添加ApiResponse构造函数参数验证和类型检查逻辑
- 更新GenerateResponses支持types属性的处理
- 增加GenerateProxyClassTest测试用例验证新功能
- 修改README文档说明types参数使用方法
- 优化ResponseVisitor中的命名空间处理
- 新增 Page 类用于分页数据封装,包含总数和内容属性
- 添加 ApiVariable 注解支持接口文档自动生成
- 创建 SystemRequest trait 定义系统标识参数
- 集成 ApiModelProperty 和验证注解确保参数规范
- 支持数组类型的系统标识参数并配置验证规则
@tw2066
tw2066 merged commit 308bfb1 into 3.1 Sep 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant