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

gf cli In gen dao, the clear parameter will affect the overwriteDao parameter, causing the custom content to be overwritten #2616

Closed
hailaz opened this issue May 4, 2023 · 3 comments
Assignees
Labels
bug It is confirmed a bug, but don't worry, we'll handle it. done This issue is done, which may be release in next version.

Comments

@hailaz
Copy link
Member

hailaz commented May 4, 2023

gfcli:
  debug: true
  gen:
    dao:
      - link: "mysql:root:root123@tcp(127.0.0.1:3306)/gfdemo"
        clear: true
        overwriteDao: false

当使用以上配置,internal\dao\user.go文件仍然被覆盖,预期是不被覆盖

@Issues-translate-bot Issues-translate-bot changed the title gf cli 在gen dao的时候,clear参数会影响overwriteDao参数,导致自定义内容被覆盖 gf cli In gen dao, the clear parameter will affect the overwriteDao parameter, causing the custom content to be overwritten May 4, 2023
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


gfcli:
  debug: true
  Gen:
    dao:
      - link: "mysql:root:root123@tcp(127.0.0.1:3306)/gfdemo"
        clear: true
        overwriteDao: false

When the above configuration is used, the internal\dao\user.go file is still overwritten, and it is expected not to be overwritten

@houseme houseme added the bug It is confirmed a bug, but don't worry, we'll handle it. label May 6, 2023
@gqcn gqcn self-assigned this Feb 5, 2024
@gqcn
Copy link
Member

gqcn commented Feb 7, 2024

@houseme Let me have a check.

gqcn added a commit that referenced this issue Feb 7, 2024
@gqcn
Copy link
Member

gqcn commented Feb 7, 2024

#3307

@gqcn gqcn closed this as completed Feb 7, 2024
@gqcn gqcn added the done This issue is done, which may be release in next version. label Feb 7, 2024
gqcn added a commit that referenced this issue Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it. done This issue is done, which may be release in next version.
Projects
None yet
Development

No branches or pull requests

4 participants