zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
29.43k stars 3.97k forks source link

goctl是否支持表前缀 #975

Closed chenweik closed 3 years ago

chenweik commented 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时自动去掉表前缀的选项?

kevwan commented 3 years ago

那么如果bc_user,bc_order表呢?

github-actions[bot] commented 3 years ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 3 years ago

This issue was closed because it has been inactive for 14 days since being marked as stale.