You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
package models
import (
"time"
"github.com/veypi/vigo"
)
// refresh token, 由oa 秘钥签发,有效期长, 存储在token表
// app token, 由app 秘钥签发,有效期短, 不存储
// OverPerm 非oa应用获取oa数据的权限, 由用户设定
type Token struct {
vigo . Model
UserID string ` json:"user_id" gorm:"index;type:varchar(36)" src:"json" desc:"用户ID" `
User * User ` json:"-" `
AppID string ` json:"app_id" gorm:"index;type:varchar(36)" src:"json" desc:"应用ID" `
App * App ` json:"-" `
ExpiredAt time . Time ` json:"expired_at" src:"json" desc:"过期时间" `
OverPerm string ` json:"over_perm" src:"json" desc:"覆盖权限" `
Device string ` json:"device" src:"json" desc:"设备信息" `
Ip string ` json:"ip" `
}