logout should unbind uuid and uid of peer

This commit is contained in:
Tao Chen
2024-11-02 05:07:41 +08:00
parent c021ebfbdf
commit d31d669734
3 changed files with 43 additions and 8 deletions

View File

@@ -2,9 +2,10 @@ package model
type UserToken struct {
IdModel
UserId uint `json:"user_id" gorm:"default:0;not null;index"`
Token string `json:"token" gorm:"default:'';not null;index"`
ExpiredAt int64 `json:"expired_at" gorm:"default:0;not null;"`
UserId uint `json:"user_id" gorm:"default:0;not null;index"`
DeviceUuid string `json:"device_uuid"`
Token string `json:"token" gorm:"default:'';not null;index"`
ExpiredAt int64 `json:"expired_at" gorm:"default:0;not null;"`
TimeModel
}