Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

希望可以自定义gen命令要生成的表名和模型名,虽然全部生成了再改也不算复杂 #3

Closed
sth4me opened this issue Sep 16, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@sth4me
Copy link

sth4me commented Sep 16, 2019

如题。在传了表名和模型名的时候,自动忽略生成全部表的效果,例如gf -t tableName -m modelName 生成的是对应数据库表tableName,文件名为modelName.go的模型文件。
最好有强制覆盖的选项,例如-f。

全部生成再copy或者move到实际项目目录中修改其实也不复杂,就是相对不方便。

@gqcn
Copy link
Member

gqcn commented Sep 16, 2019

@sth4me 已增加-t参数用以指定需要生成的表名。

@gqcn gqcn added the enhancement New feature or request label Sep 16, 2019
@gqcn gqcn closed this as completed Sep 24, 2019
gqcn pushed a commit that referenced this issue Aug 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants