4-2 数据模型的生成
xorm使用可以查看:https://blog.csdn.net/INGNIGHT/article/details/104957116
cd github.com/go-xorm/cmd/xorm
sudo xorm reverse mysql "root:liuqi@tcp(127.0.0.1:3306)/lottery?charset=utf8" templates/goxorm/
可以看到models产出的数据结构
xorm使用可以查看:https://blog.csdn.net/INGNIGHT/article/details/104957116
cd github.com/go-xorm/cmd/xorm
sudo xorm reverse mysql "root:liuqi@tcp(127.0.0.1:3306)/lottery?charset=utf8" templates/goxorm/
可以看到models产出的数据结构