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

refactor(cmd/gf): use automatic generating package names for go files of dao/do/entity instead of constant package names #3639

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

Insua
Copy link
Contributor

@Insua Insua commented Jun 12, 2024

When employing the CLI to instantiate the generation of dao, one customarily specifies parameters such as daoPath, doPath, and entityPath. These parameters determine the file paths for the generated Go files, while the package names default to dao, do, and entity. To address this, an additional configuration parameter, withPathPackage, has been introduced. If withPathPackage is set to true, the package names will be defined according to the respective paths specified by daoPath, doPath, and entityPath.

cmd/gf/internal/cmd/gendao/gendao.go Outdated Show resolved Hide resolved
@gqcn gqcn merged commit 88f188d into gogf:master Jun 13, 2024
23 checks passed
@gqcn gqcn changed the title cmd/gf: use automatic generating package names for go files of dao/do/entity instead of constant package names refactor(cmd/gf): use automatic generating package names for go files of dao/do/entity instead of constant package names Jun 26, 2024
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