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

[优化]代码生成器优化 #629

Open
a6652162 opened this issue Jul 17, 2024 · 0 comments
Open

[优化]代码生成器优化 #629

a6652162 opened this issue Jul 17, 2024 · 0 comments

Comments

@a6652162
Copy link

需求描述 [详细地描述需求,让大家都能理解]

代码生成器中,如果要自己写SetPreProcessFn,SetInsertFn等函数时,需要用到func(values form.Values)方法,同时需要引用包:github.com/GoAdminGroup/go-admin/plugins/admin/modules/form
但默认生成的代码中,已有包:github.com/GoAdminGroup/go-admin/template/types/form
两者包名冲突,而代码生成器中的导入包,又没办法重命名,导致每次生成,我需要到import里重新命令包,很麻烦

解决方案 [如果你有解决方案,在这里清晰地阐述]

建议对导入包的功能进行优化;或是有什么办法解决这个导入的包名与默认生成的包名冲突的办法

其他信息 [如截图等其他信息可以贴在这里]

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