feat: 客户端授权防护——响应签名/激活令牌/宽限期/换座限制/在线清扫/疑似共享标记
This commit is contained in:
1 parent
37d9e8ca56
commit
b76111dfc3
11 files changed
+437
-54
No files matched your search
@@ -60,6 +60,7 @@ func (License) TableName() string {
|
||||
}
|
||||
|
||||
// Activation 激活记录模型(机器绑定) // Logan.Li
|
||||
// Activation 设备激活记录 // Logan.Li
|
||||
type Activation struct {
|
||||
ID uint `json:"id" gorm:"primaryKey"`
|
||||
LicenseID uint `json:"license_id" gorm:"uniqueIndex:idx_lic_device,priority:1"`
|
||||
@@ -70,6 +71,7 @@ type Activation struct {
|
||||
IP string `json:"ip" gorm:"size:50"`
|
||||
Status string `json:"status" gorm:"size:20;default:'active'"` // active / inactive
|
||||
IsOnline bool `json:"is_online" gorm:"default:false"`
|
||||
Token string `json:"-" gorm:"size:64"` // 设备激活令牌:解绑需持有,防止仅凭序列号偷座 // Logan.Li
|
||||
ActivatedAt time.Time `json:"activated_at"`
|
||||
ExpiresAt *time.Time `json:"expires_at,omitempty"`
|
||||
LastSeenAt time.Time `json:"last_seen_at"`
|
||||
|
||||
Reference in new issue
Block a user