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

建议生成时可以选择链式调用 #8

Open
gengxiangyu opened this issue Jan 24, 2022 · 4 comments
Open

建议生成时可以选择链式调用 #8

gengxiangyu opened this issue Jan 24, 2022 · 4 comments

Comments

@gengxiangyu
Copy link

比如生成时可以生成 user.setName().setAge().setGender 等等

@fuzhengwei
Copy link
Owner

链式调用的案例还比较多,需要先收集下,如果同有链式调用的可以补充到这个issue,另外也可以提供判断链式调用逻辑规则。

@gengxiangyu
Copy link
Author

生成普通的set方法的时候,是按照类中字段属性的顺序来的吧,链式调用也可以这么做,但是有种情况,就是说如果这个类有继承类,这时候这个继承的字段就不能放到链式调用中了,得单独进行set或者放到最后一个set

@hanelalo
Copy link

链式调用 +1。

1 similar comment
@Goirry
Copy link

Goirry commented Sep 27, 2022

链式调用 +1。

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

4 participants