add last online ip #24

This commit is contained in:
ljw committed 2024-10-28 20:24:34 +08:00
1 parent 1191ade8af
commit 991fc86fa6
3 files changed
+5 -5

No files matched your search

+1
View File
@@ -13,6 +13,7 @@ type Peer struct {
UserId uint `json:"user_id" gorm:"default:0;not null;index"`
User *User `json:"user,omitempty"`
LastOnlineTime int64 `json:"last_online_time" gorm:"default:0;not null;"`
LastOnlineIp string `json:"last_online_ip" gorm:"default:'';not null;"`
TimeModel
}