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

生成 model 添加自定义方法如何为参数加上自定义model #1184

Open
sscui opened this issue Aug 4, 2024 · 2 comments
Open

生成 model 添加自定义方法如何为参数加上自定义model #1184

sscui opened this issue Aug 4, 2024 · 2 comments
Assignees

Comments

@sscui
Copy link

sscui commented Aug 4, 2024

Your Question

我在使用 gen 生成 model 时,希望可以加上自定义的方法,而且这个自定义方法有一个自定义的 model type。如图所示
image

但是生成的结果的参数却加上 UNDEFINED. , 请问这个问题该如何解决呢?
image

The document you expected this should be explained

Expected answer

@qqxhb
Copy link
Member

qqxhb commented Aug 9, 2024

@sscui 看起来是个bug,可以先把这个自定义的单独放一个路径,应该就可以了

@sscui
Copy link
Author

sscui commented Aug 9, 2024

@qqxhb 现在是把它放在我的gorm-generate 的文件夹下,单独放在一个路径是指要在项目可以访问到的路径下面吗?这样感觉对我的生成脚本不太友好,希望能早点把这个问题解决

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

3 participants