Closed chenweik closed 3 years ago
我的数据库是单体数据库,所有表都有前缀,例如ac_user, ac_order,在使用goctl生成model时, goctl model mysql datasource -url="ac:123@tcp(127.0.0.1:3306)/ac" -dir="./genmodel" -cache=true -table="*" --style goZero 所有的model都带有ac前缀,本来想生成UserModel.go,但现在全部变成acUserModel.go。 goctl是否有在生成model时自动去掉表前缀的选项?
那么如果bc_user,bc_order表呢?
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
我的数据库是单体数据库,所有表都有前缀,例如ac_user, ac_order,在使用goctl生成model时, goctl model mysql datasource -url="ac:123@tcp(127.0.0.1:3306)/ac" -dir="./genmodel" -cache=true -table="*" --style goZero 所有的model都带有ac前缀,本来想生成UserModel.go,但现在全部变成acUserModel.go。 goctl是否有在生成model时自动去掉表前缀的选项?