Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] - 客户端API生成,请支持record类型 #878

Closed
TokgoRonin opened this issue Jan 14, 2025 · 2 comments
Closed

[Feature Request] - 客户端API生成,请支持record类型 #878

TokgoRonin opened this issue Jan 14, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@TokgoRonin
Copy link
Contributor

Reason

使用的JDK21版本,大部分场景下使用record类型,可以不引入lombok依赖,简化代码。

Description

目前在客户端API生成时,对于 record类型不支持,仅会生成一个TS的类型名称,而不会解析record类型里的参数,例如:

record PageQuery<T>(
    Integer pageIndex,
    Integer pageSize,
    T spec
){}

生成的TS里就只有类型名称,内部的参数完全没有:

export interface PageQuery<T> {

}

Existing solutions

No response

@TokgoRonin TokgoRonin added the enhancement New feature or request label Jan 14, 2025
@Enaium
Copy link
Contributor

Enaium commented Jan 14, 2025

这个问题原来是Record造成的?

Enaium added a commit to Enaium-Fork/jimmer that referenced this issue Jan 14, 2025
Enaium added a commit to Enaium-Fork/jimmer that referenced this issue Jan 14, 2025
Enaium added a commit to Enaium-Fork/jimmer that referenced this issue Jan 14, 2025
Enaium added a commit to Enaium-Fork/jimmer that referenced this issue Jan 14, 2025
babyfish-ct added a commit that referenced this issue Jan 14, 2025
@babyfish-ct
Copy link
Owner

Try 0.9.46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants