feat: 添加数据库资产、命令拦截器、授权资产等功能,修复GitHub Actions工作流
This commit is contained in:
@@ -5,11 +5,11 @@ import (
|
||||
)
|
||||
|
||||
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"`
|
||||
Type string `gorm:"type:varchar(32);default:'api'" json:"type"`
|
||||
Created common.JsonTime `json:"createdAt"`
|
||||
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"`
|
||||
Type string `gorm:"type:varchar(32);default:'api'" json:"type"`
|
||||
Created common.JsonTime `json:"createdAt"`
|
||||
}
|
||||
|
||||
func (r *AccessToken) TableName() string {
|
||||
|
||||
Reference in New Issue
Block a user