Error code standardization

This commit is contained in:
skiffer-git
2023-02-09 13:36:37 +08:00
parent 772a46e041
commit 099bbbb5d3
4 changed files with 106 additions and 105 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ func NewUserServer(port int) *userServer {
//mysql init
var mysql relation.Mysql
var model relation.UserGorm
err := mysql.InitConn().AutoMigrateModel(&model)
err = mysql.InitConn().AutoMigrateModel(&model)
if err != nil {
panic("db init err:" + err.Error())
}