Able to manage token now

This commit is contained in:
JustSong committed 2023-04-23 12:43:10 +08:00
1 parent 466cdbf1af
commit 9ca6adf4a1
11 files changed
+573 -121

No files matched your search

+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