refactor: token cache logic

This commit is contained in:
CalciumIon committed 2024-12-30 17:10:48 +08:00
1 parent c6ae827385
commit aefd53b683
15 files changed
+417 -196

No files matched your search

-10
View File
@@ -12,16 +12,6 @@ import (
"gorm.io/gorm"
)
var groupCol string
func init() {
if common.UsingPostgreSQL {
groupCol = `"group"`
} else {
groupCol = "`group`"
}
}
type Log struct {
Id int `json:"id" gorm:"index:idx_created_at_id,priority:1"`
UserId int `json:"user_id" gorm:"index"`