修复 「1.2.2 用户管理-用户列表勾选单一用户会全选 」 close #216
This commit is contained in:
14
server/model/access_token.go
Normal file
14
server/model/access_token.go
Normal file
@ -0,0 +1,14 @@
|
||||
package model
|
||||
|
||||
import "next-terminal/server/utils"
|
||||
|
||||
type AccessToken struct {
|
||||
ID string `gorm:"primary_key,type:varchar(36)" json:"id"`
|
||||
UserId string `gorm:"index,type:varchar(200)" json:"userId"`
|
||||
Token string `gorm:"index,type:varchar(128)" json:"token"`
|
||||
Created utils.JsonTime `json:"created"`
|
||||
}
|
||||
|
||||
func (r *AccessToken) TableName() string {
|
||||
return "access_token"
|
||||
}
|
Reference in New Issue
Block a user