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

是否可以直接生成一个转换方法,就像Bean Converter(By JiaQi)那样。 #20

Open
jones-187 opened this issue Dec 29, 2023 · 0 comments

Comments

@jones-187
Copy link

vo2dto目前是只生成x.set(y.get())的代码,我觉得可以直接生成一个转换方法。

比如在类X中生成一个名为fromY的方法,入参为Y,方法将Y转换为X。

考虑到转换代码很可能被复用,所以将其抽象为一个方法很有必要。如果能够直接生成方法,就省去了自己创建方法的繁琐。

目前使用的插件:Bean Converter(By JiaQi)提供了这项功能。
但你创建的利用粘贴板选择类的功能,非常好用,感觉使用上要更加方便。如果能增加上述提到的功能,应该会更方便吧

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

No branches or pull requests

1 participant