Able to manage token now

This commit is contained in:
JustSong
2023-04-23 12:43:10 +08:00
parent 466cdbf1af
commit 9ca6adf4a1
11 changed files with 573 additions and 121 deletions
+4
View File
@@ -56,6 +56,10 @@ func InitDB() (err error) {
if err != nil {
return err
}
err = db.AutoMigrate(&Token{})
if err != nil {
return err
}
err = db.AutoMigrate(&User{})
if err != nil {
return err