add oauth loginlog & fix bugs

This commit is contained in:
ljw
2024-09-19 10:44:49 +08:00
parent ebd1feb8d1
commit a4b413dadb
48 changed files with 3477 additions and 184 deletions

View File

@@ -157,7 +157,7 @@ func ApiInitValidator() {
}
func DatabaseAutoUpdate() {
version := 100
version := 103
db := global.DB
@@ -215,6 +215,9 @@ func Migrate(version uint) {
&model.AddressBook{},
&model.Peer{},
&model.Group{},
&model.UserThird{},
&model.Oauth{},
&model.LoginLog{},
)
if err != nil {
fmt.Println("migrate err :=>", err)