-
Notifications
You must be signed in to change notification settings - Fork 176
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
Generate from a base class(使用一个基类来生成解析类) #59
Comments
@everyline 嗨,什么意思,可以的话请麻烦把问题说明具体些 ,如果可以举例说明那更好 |
@everyline 非常感谢你的建议,这个我们的插件暂时不支持这样的功能,不过以后可能会加入这项功能。 |
@everyline 明确一下需求,你是想在根据 json 生成类的时候,指定一个基类,所有生成的类都继承这个基类,然后复用所有在基类中已经声明过的字段,对吧?
|
yes , That's true. |
Is this possible? This is common in normal projects |
As a workaround, we could customize this plugin with the But the problem is, for each parent class, we'll need to write one Extension implementation. Please see here to know about |
翻看了issues,似乎没看到类似的,或许是我没找到。给大佬提个建议,生成的data class,能否按照json的层级格式,同样的嵌套data class,这样会便于一些场景中,避免同名class的创建冲突。 |
No description provided.
The text was updated successfully, but these errors were encountered: