add last online ip #24

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

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
}