Able to manage token now

This commit is contained in:
JustSong
2023-04-23 12:43:10 +08:00
parent b908229429
commit 63da6dc6a0
11 changed files with 573 additions and 121 deletions

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