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

fix: do.XXXX struct will not work properly after setting removeFieldPrefix in config.yaml #4112

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

zj519718645
Copy link

No description provided.

@gqcn
Copy link
Member

gqcn commented Jan 22, 2025

#4111

@gqcn gqcn changed the title fix: 修复gen dao问题issue #4111 fix: do.XXXX struct will not work properly after setting removeFieldPrefix in config.yaml Feb 27, 2025
@@ -145,10 +145,10 @@ func generateStructFieldDefinition(
}
attrLines = append(attrLines, fmt.Sprintf(` #%sjson:"%s"`, tagKey, jsonTag))
// orm tag
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的注释修改为// add orm tag for generated do/entity files

attrLines = append(attrLines, fmt.Sprintf(` #orm:"%s"`, field.Name))
}
//if !in.IsDo {
// entity
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

将不必要的注释删掉吧。

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

Successfully merging this pull request may close these issues.

2 participants