Skip to content

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

Closed
zj519718645 wants to merge 6 commits intogogf:masterfrom
zj519718645:master
Closed

fix: do.XXXX struct will not work properly after setting removeFieldPrefix in config.yaml#4112
zj519718645 wants to merge 6 commits intogogf:masterfrom
zj519718645:master

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.

将不必要的注释删掉吧。

@gqcn
Copy link
Member

gqcn commented Dec 13, 2025

closed due to inactivity

@gqcn gqcn closed this Dec 13, 2025
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