Merge remote-tracking branch 'origin/errcode' into errcode

This commit is contained in:
withchao
2023-02-01 17:22:50 +08:00
4 changed files with 71 additions and 68 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ func NewUserServer(port int) *userServer {
}
//mysql init
var mysql relation.Mysql
var model relation.User
var model relation.UserGorm
err := mysql.InitConn().AutoMigrateModel(&model)
if err != nil {
panic("db init err:" + err.Error())