邀请码功能

1、新增邀请码功能
  needInvitationCode: false 改成 true 后生效
2、完善后台用户注册 修改相关
This commit is contained in:
欧阳氏
2022-08-13 10:41:10 +08:00
parent 7caccce907
commit 39606248a1
17 changed files with 1233 additions and 1062 deletions
+4
View File
@@ -159,6 +159,10 @@ func initMysqlDB() {
fmt.Println("CreateTable RegisterAddFriend")
db.Migrator().CreateTable(&RegisterAddFriend{})
}
if !db.Migrator().HasTable(&Invitation{}) {
fmt.Println("CreateTable Invitation")
db.Migrator().CreateTable(&Invitation{})
}
DB.MysqlDB.db = db
return
}